Class CompactionScheduler
- java.lang.Object
-
- org.apache.iotdb.db.engine.compaction.CompactionScheduler
-
public class CompactionScheduler extends java.lang.ObjectCompactionScheduler 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 correspondingselectoraccording to the compaction machanism of the task(e.g. LevelCompaction, SizeTiredCompaction), and the selection and submission process is carried out in theICompactionSelector.selectInnerSpaceTask(List)() andICompactionSelector.selectCrossSpaceTask(List, List)} in selector.
-
-
Constructor Summary
Constructors Constructor Description CompactionScheduler()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidscheduleCompaction(TsFileManager tsFileManager, long timePartition)static voidtryToSubmitInnerSpaceCompactionTask(java.lang.String storageGroupName, java.lang.String dataRegionId, long timePartition, TsFileManager tsFileManager, boolean sequence)
-
-
-
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
-
-