public abstract class BaseWriteHelper<T,I,K,O,R> extends ParallelismHelper<I>
| Modifier | Constructor and Description |
|---|---|
protected |
BaseWriteHelper(SerializableFunctionUnchecked<I,Integer> partitionNumberExtractor) |
| Modifier and Type | Method and Description |
|---|---|
I |
combineOnCondition(boolean condition,
I records,
int configuredParallelism,
HoodieTable<T,I,K,O> table) |
abstract I |
deduplicateRecords(I records,
HoodieIndex<?,?> index,
int parallelism,
String schema,
TypedProperties props,
HoodieRecordMerger merger) |
I |
deduplicateRecords(I records,
HoodieTable<T,I,K,O> table,
int parallelism)
Deduplicate Hoodie records, using the given deduplication function.
|
protected abstract I |
tag(I dedupedRecords,
HoodieEngineContext context,
HoodieTable<T,I,K,O> table) |
HoodieWriteMetadata<O> |
write(String instantTime,
I inputRecords,
HoodieEngineContext context,
HoodieTable<T,I,K,O> table,
boolean shouldCombine,
int configuredShuffleParallelism,
BaseCommitActionExecutor<T,I,K,O,R> executor,
WriteOperationType operationType) |
deduceShuffleParallelismprotected BaseWriteHelper(SerializableFunctionUnchecked<I,Integer> partitionNumberExtractor)
public HoodieWriteMetadata<O> write(String instantTime, I inputRecords, HoodieEngineContext context, HoodieTable<T,I,K,O> table, boolean shouldCombine, int configuredShuffleParallelism, BaseCommitActionExecutor<T,I,K,O,R> executor, WriteOperationType operationType)
protected abstract I tag(I dedupedRecords, HoodieEngineContext context, HoodieTable<T,I,K,O> table)
public I combineOnCondition(boolean condition, I records, int configuredParallelism, HoodieTable<T,I,K,O> table)
public I deduplicateRecords(I records, HoodieTable<T,I,K,O> table, int parallelism)
records - hoodieRecords to deduplicateparallelism - parallelism or partitions to be used while reducing/deduplicatingpublic abstract I deduplicateRecords(I records, HoodieIndex<?,?> index, int parallelism, String schema, TypedProperties props, HoodieRecordMerger merger)
Copyright © 2024 The Apache Software Foundation. All rights reserved.