public class UnBoundedPartitionAwareCompactionStrategy extends CompactionStrategy
BoundedPartitionAwareCompactionStrategy and return the result. This is done
so that a long running UnBoundedPartitionAwareCompactionStrategy does not step over partitions in a shorter running
BoundedPartitionAwareCompactionStrategy. Essentially, this is an inverse of the partitions chosen in
BoundedPartitionAwareCompactionStrategyCompactionStrategy,
Serialized FormTOTAL_IO_MB, TOTAL_IO_READ_MB, TOTAL_IO_WRITE_MB, TOTAL_LOG_FILE_SIZE, TOTAL_LOG_FILES| Constructor and Description |
|---|
UnBoundedPartitionAwareCompactionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
filterPartitionPaths(HoodieWriteConfig writeConfig,
List<String> partitionPaths)
Filter the partition paths based on compaction strategy.
|
List<HoodieCompactionOperation> |
orderAndFilter(HoodieWriteConfig config,
List<HoodieCompactionOperation> operations,
List<HoodieCompactionPlan> pendingCompactionWorkloads)
Order and Filter the list of compactions.
|
captureMetrics, generateCompactionPlanpublic UnBoundedPartitionAwareCompactionStrategy()
public List<HoodieCompactionOperation> orderAndFilter(HoodieWriteConfig config, List<HoodieCompactionOperation> operations, List<HoodieCompactionPlan> pendingCompactionWorkloads)
CompactionStrategyorderAndFilter in class CompactionStrategyconfig - config for this compaction is passed inoperations - list of compactions collectedpendingCompactionWorkloads - Pending Compaction Plans for strategy to schedule next compaction planpublic List<String> filterPartitionPaths(HoodieWriteConfig writeConfig, List<String> partitionPaths)
CompactionStrategyfilterPartitionPaths in class CompactionStrategyCopyright © 2024 The Apache Software Foundation. All rights reserved.