public class JavaUpsertPartitioner<T> extends Object implements Partitioner
| Modifier and Type | Field and Description |
|---|---|
protected HoodieWriteConfig |
config |
protected List<SmallFile> |
smallFiles
List of all small files to be corrected.
|
protected HoodieTable |
table |
| Constructor and Description |
|---|
JavaUpsertPartitioner(WorkloadProfile workloadProfile,
org.apache.hudi.common.engine.HoodieEngineContext context,
HoodieTable table,
HoodieWriteConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected static long |
averageBytesPerRecord(org.apache.hudi.common.table.timeline.HoodieTimeline commitTimeline,
HoodieWriteConfig hoodieWriteConfig)
Obtains the average record size based on records written during previous commits.
|
BucketInfo |
getBucketInfo(int bucketNumber) |
List<InsertBucketCumulativeWeightPair> |
getInsertBuckets(String partitionPath) |
int |
getNumPartitions() |
int |
getPartition(Object key) |
List<String> |
getSmallFileIds() |
protected List<SmallFile> |
getSmallFiles(String partitionPath)
Returns a list of small files in the given partition path.
|
protected final HoodieTable table
protected final HoodieWriteConfig config
public JavaUpsertPartitioner(WorkloadProfile workloadProfile, org.apache.hudi.common.engine.HoodieEngineContext context, HoodieTable table, HoodieWriteConfig config)
protected List<SmallFile> getSmallFiles(String partitionPath)
public BucketInfo getBucketInfo(int bucketNumber)
public List<InsertBucketCumulativeWeightPair> getInsertBuckets(String partitionPath)
public int getNumPartitions()
getNumPartitions in interface Partitionerpublic int getPartition(Object key)
getPartition in interface Partitionerprotected static long averageBytesPerRecord(org.apache.hudi.common.table.timeline.HoodieTimeline commitTimeline,
HoodieWriteConfig hoodieWriteConfig)
Copyright © 2023 The Apache Software Foundation. All rights reserved.