public class CompactSegments extends Object implements CoordinatorDuty
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPACTION_TASK_TYPE
Must be synced with org.apache.druid.indexing.common.task.CompactionTask.TYPE.
|
static String |
STORE_COMPACTION_STATE_KEY
Must be synced with org.apache.druid.indexing.common.task.Tasks.STORE_COMPACTION_STATE_KEY
|
| Constructor and Description |
|---|
CompactSegments(DruidCoordinatorConfig config,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
IndexingServiceClient indexingServiceClient) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,AutoCompactionSnapshot> |
getAutoCompactionSnapshot() |
AutoCompactionSnapshot |
getAutoCompactionSnapshot(String dataSource) |
Long |
getTotalSizeOfSegmentsAwaitingCompaction(String dataSource) |
DruidCoordinatorRuntimeParams |
run(DruidCoordinatorRuntimeParams params)
Implementations of this method run various activities performed by the coordinator.
|
public static final String COMPACTION_TASK_TYPE
public static final String STORE_COMPACTION_STATE_KEY
@Inject public CompactSegments(DruidCoordinatorConfig config, com.fasterxml.jackson.databind.ObjectMapper objectMapper, IndexingServiceClient indexingServiceClient)
public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
CoordinatorDutyrun in interface CoordinatorDutyDruidCoordinator.DutiesRunnable) from running until the next
cycle.@Nullable public Long getTotalSizeOfSegmentsAwaitingCompaction(String dataSource)
@Nullable public AutoCompactionSnapshot getAutoCompactionSnapshot(String dataSource)
public Map<String,AutoCompactionSnapshot> getAutoCompactionSnapshot()
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.