public abstract class BaseHoodieCompactionPlanGenerator<T extends HoodieRecordPayload,I,K,O> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected HoodieEngineContext |
engineContext |
protected HoodieTable<T,I,K,O> |
hoodieTable |
protected HoodieWriteConfig |
writeConfig |
| Constructor and Description |
|---|
BaseHoodieCompactionPlanGenerator(HoodieTable table,
HoodieEngineContext engineContext,
HoodieWriteConfig writeConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
filterFileSlice(FileSlice fileSlice,
String lastCompletedInstantTime,
Set<HoodieFileGroupId> pendingFileGroupIds,
Option<InstantRange> instantRange) |
protected abstract boolean |
filterLogCompactionOperations() |
protected List<String> |
filterPartitionPathsByStrategy(List<String> partitionPaths) |
HoodieCompactionPlan |
generateCompactionPlan(String compactionInstant) |
protected abstract HoodieCompactionPlan |
getCompactionPlan(HoodieTableMetaClient metaClient,
List<HoodieCompactionOperation> operations) |
protected Map<String,String> |
getStrategyParams() |
protected final HoodieTable<T extends HoodieRecordPayload,I,K,O> hoodieTable
protected final HoodieWriteConfig writeConfig
protected final transient HoodieEngineContext engineContext
public BaseHoodieCompactionPlanGenerator(HoodieTable table, HoodieEngineContext engineContext, HoodieWriteConfig writeConfig)
@Nullable public HoodieCompactionPlan generateCompactionPlan(String compactionInstant) throws IOException
IOExceptionprotected abstract HoodieCompactionPlan getCompactionPlan(HoodieTableMetaClient metaClient, List<HoodieCompactionOperation> operations)
protected abstract boolean filterLogCompactionOperations()
protected List<String> filterPartitionPathsByStrategy(List<String> partitionPaths)
protected boolean filterFileSlice(FileSlice fileSlice, String lastCompletedInstantTime, Set<HoodieFileGroupId> pendingFileGroupIds, Option<InstantRange> instantRange)
Copyright © 2024 The Apache Software Foundation. All rights reserved.