Class CompactionLogger

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CompactionLogger
    extends java.lang.Object
    implements java.lang.AutoCloseable
    MergeLogger records the progress of a merge in file "merge.log" as text lines.
    • Field Detail

      • CROSS_COMPACTION_LOG_NAME_SUFFIX

        public static final java.lang.String CROSS_COMPACTION_LOG_NAME_SUFFIX
        See Also:
        Constant Field Values
      • CROSS_COMPACTION_LOG_NAME_FROM_OLD

        public static final java.lang.String CROSS_COMPACTION_LOG_NAME_FROM_OLD
        See Also:
        Constant Field Values
      • INNER_COMPACTION_LOG_NAME_SUFFIX

        public static final java.lang.String INNER_COMPACTION_LOG_NAME_SUFFIX
        See Also:
        Constant Field Values
      • INNER_COMPACTION_LOG_NAME_SUFFIX_FROM_OLD

        public static final java.lang.String INNER_COMPACTION_LOG_NAME_SUFFIX_FROM_OLD
        See Also:
        Constant Field Values
      • STR_SOURCE_FILES

        public static final java.lang.String STR_SOURCE_FILES
        See Also:
        Constant Field Values
      • STR_TARGET_FILES

        public static final java.lang.String STR_TARGET_FILES
        See Also:
        Constant Field Values
      • STR_SOURCE_FILES_FROM_OLD

        public static final java.lang.String STR_SOURCE_FILES_FROM_OLD
        See Also:
        Constant Field Values
      • STR_TARGET_FILES_FROM_OLD

        public static final java.lang.String STR_TARGET_FILES_FROM_OLD
        See Also:
        Constant Field Values
      • STR_SEQ_FILES_FROM_OLD

        public static final java.lang.String STR_SEQ_FILES_FROM_OLD
        See Also:
        Constant Field Values
      • STR_UNSEQ_FILES_FROM_OLD

        public static final java.lang.String STR_UNSEQ_FILES_FROM_OLD
        See Also:
        Constant Field Values
      • SEQUENCE_NAME_FROM_OLD

        public static final java.lang.String SEQUENCE_NAME_FROM_OLD
        See Also:
        Constant Field Values
      • UNSEQUENCE_NAME_FROM_OLD

        public static final java.lang.String UNSEQUENCE_NAME_FROM_OLD
        See Also:
        Constant Field Values
      • STR_MERGE_START_FROM_OLD

        public static final java.lang.String STR_MERGE_START_FROM_OLD
        See Also:
        Constant Field Values
    • Constructor Detail

      • CompactionLogger

        public CompactionLogger​(java.io.File logFile)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.io.IOException
      • logFiles

        public void logFiles​(java.util.List<TsFileResource> tsFiles,
                             java.lang.String flag)
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • findCompactionLogs

        public static java.io.File[] findCompactionLogs​(boolean isInnerSpace,
                                                        java.lang.String directory)