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(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
IndexingServiceClient indexingServiceClient) |
| Modifier and Type | Method and Description |
|---|---|
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(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
IndexingServiceClient indexingServiceClient)
public DruidCoordinatorRuntimeParams run(DruidCoordinatorRuntimeParams params)
CoordinatorDutyrun in interface CoordinatorDutyDruidCoordinator.DutiesRunnable) from running until the next
cycle.Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.