Class CompactSegments

    • Field Detail

      • COMPACTION_TASK_TYPE

        public static final String COMPACTION_TASK_TYPE
        Must be the same as org.apache.druid.indexing.common.task.CompactionTask.TYPE.
        See Also:
        Constant Field Values
      • STORE_COMPACTION_STATE_KEY

        public static final String STORE_COMPACTION_STATE_KEY
        Must be the same as org.apache.druid.indexing.common.task.Tasks.STORE_COMPACTION_STATE_KEY
        See Also:
        Constant Field Values
    • Method Detail

      • run

        public DruidCoordinatorRuntimeParams run​(DruidCoordinatorRuntimeParams params)
        Description copied from interface: CoordinatorDuty
        Implementations of this method run various activities performed by the coordinator. Input params can be used and modified. The returned DruidCoordinatorRuntimeParams is passed to the next duty.
        Specified by:
        run in interface CoordinatorDuty
        Returns:
        same as input or a modified value to be used by next duty. Null return values will prevent subsequent CoordinatorDuty objects (see the order in the lists passed into the constructor of DruidCoordinator.DutiesRunnable) from running until the next cycle.
      • getTotalSizeOfSegmentsAwaitingCompaction

        @Nullable
        public Long getTotalSizeOfSegmentsAwaitingCompaction​(String dataSource)