Class CompactionScheduler


  • public class CompactionScheduler
    extends java.lang.Object
    CompactionScheduler schedules and submits the compaction task periodically, and it counts the total number of running compaction task. There are three compaction strategy: BALANCE, INNER_CROSS, CROSS_INNER. Difference strategies will lead to different compaction preferences. For different types of compaction task(e.g. InnerSpaceCompaction), CompactionScheduler will call the corresponding selector according to the compaction machanism of the task(e.g. LevelCompaction, SizeTiredCompaction), and the selection and submission process is carried out in the ICompactionSelector.selectInnerSpaceTask(List) () and ICompactionSelector.selectCrossSpaceTask(List, List)} in selector.
    • Constructor Detail

      • CompactionScheduler

        public CompactionScheduler()
    • Method Detail

      • scheduleCompaction

        public static void scheduleCompaction​(TsFileManager tsFileManager,
                                              long timePartition)
      • tryToSubmitInnerSpaceCompactionTask

        public static void tryToSubmitInnerSpaceCompactionTask​(java.lang.String storageGroupName,
                                                               java.lang.String dataRegionId,
                                                               long timePartition,
                                                               TsFileManager tsFileManager,
                                                               boolean sequence)
                                                        throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException