Class CompactSegments
java.lang.Object
org.apache.druid.server.coordinator.duty.CompactSegments
- All Implemented Interfaces:
CoordinatorCustomDuty,CoordinatorDuty
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCompactSegments(CompactionStatusTracker statusTracker, OverlordClient overlordClient) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientCompactionTaskQuerycreateCompactionTask(CompactionCandidate candidate, Eligibility eligibility, DataSourceCompactionConfig config, CompactionEngine defaultEngine, String indexingStateFingerprint, boolean storeCompactionStatePerSegment) Creates aClientCompactionTaskQuerywhich can be submitted to anOverlordClientto start a compaction task.getAutoCompactionSnapshot(String dataSource) voidrun(DruidCompactionConfig dynamicConfig, DataSourcesSnapshot dataSources, CompactionEngine defaultEngine, CoordinatorRunStats stats) run(DruidCoordinatorRuntimeParams params) Implementations of this method run various activities performed by the coordinator.
-
Field Details
-
STORE_COMPACTION_STATE_KEY
Must be the same as org.apache.druid.indexing.common.task.Tasks.STORE_COMPACTION_STATE_KEY- See Also:
-
INDEXING_STATE_FINGERPRINT_KEY
Must be the same as org.apache.druid.indexing.common.task.Tasks.INDEXING_STATE_FINGERPRINT_KEY- See Also:
-
-
Constructor Details
-
CompactSegments
-
-
Method Details
-
getOverlordClient
-
run
Description copied from interface:CoordinatorDutyImplementations 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:
runin interfaceCoordinatorDuty- 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.
-
run
public void run(DruidCompactionConfig dynamicConfig, DataSourcesSnapshot dataSources, CompactionEngine defaultEngine, CoordinatorRunStats stats) -
createCompactionTask
public static ClientCompactionTaskQuery createCompactionTask(CompactionCandidate candidate, Eligibility eligibility, DataSourceCompactionConfig config, CompactionEngine defaultEngine, String indexingStateFingerprint, boolean storeCompactionStatePerSegment) Creates aClientCompactionTaskQuerywhich can be submitted to anOverlordClientto start a compaction task. -
getAutoCompactionSnapshot
-
getAutoCompactionSnapshot
-