public abstract class PartitionAwareClusteringPlanStrategy<T,I,K,O> extends ClusteringPlanStrategy<T,I,K,O>
CLUSTERING_PLAN_VERSION_1, hoodieTable| Constructor and Description |
|---|
PartitionAwareClusteringPlanStrategy(HoodieTable table,
HoodieEngineContext engineContext,
HoodieWriteConfig writeConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected Stream<HoodieClusteringGroup> |
buildClusteringGroupsForPartition(String partitionPath,
List<FileSlice> fileSlices)
Create Clustering group based on files eligible for clustering in the partition.
|
protected List<String> |
filterPartitionPaths(List<String> partitionPaths)
Return list of partition paths to be considered for clustering.
|
Option<HoodieClusteringPlan> |
generateClusteringPlan()
Generate metadata for grouping eligible files and create a plan.
|
protected int |
getNumberOfOutputFileGroups(long groupSize,
long targetFileSize) |
List<String> |
getRegexPatternMatchedPartitions(HoodieWriteConfig config,
List<String> partitionPaths) |
buildMetrics, checkAndGetClusteringPlanStrategy, checkPrecondition, getEngineContext, getExtraMetadata, getFileSliceInfo, getFileSlicesEligibleForClustering, getHoodieTable, getPlanVersion, getStrategyParams, getWriteConfigpublic PartitionAwareClusteringPlanStrategy(HoodieTable table, HoodieEngineContext engineContext, HoodieWriteConfig writeConfig)
protected Stream<HoodieClusteringGroup> buildClusteringGroupsForPartition(String partitionPath, List<FileSlice> fileSlices)
protected List<String> filterPartitionPaths(List<String> partitionPaths)
public Option<HoodieClusteringPlan> generateClusteringPlan()
ClusteringPlanStrategygenerateClusteringPlan in class ClusteringPlanStrategy<T,I,K,O>public List<String> getRegexPatternMatchedPartitions(HoodieWriteConfig config, List<String> partitionPaths)
protected int getNumberOfOutputFileGroups(long groupSize,
long targetFileSize)
Copyright © 2024 The Apache Software Foundation. All rights reserved.