public class PartialUpdateMergeFunction extends Object implements MergeFunction<KeyValue>
MergeFunction where key is primary key (unique) and value is the partial record, update
non-null fields on merge.| Modifier and Type | Field and Description |
|---|---|
static String |
SEQUENCE_GROUP |
| Modifier | Constructor and Description |
|---|---|
protected |
PartialUpdateMergeFunction(InternalRow.FieldGetter[] getters,
boolean ignoreDelete,
Map<Integer,FieldsComparator> fieldSeqComparators,
Map<Integer,FieldAggregator> fieldAggregators,
boolean fieldSequenceEnabled,
boolean removeRecordOnDelete) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(KeyValue kv)
Add the given
KeyValue to the merge function. |
static MergeFunctionFactory<KeyValue> |
factory(Options options,
RowType rowType,
List<String> primaryKeys) |
KeyValue |
getResult()
Get current merged value.
|
void |
reset()
Reset the merge function to its default state.
|
public static final String SEQUENCE_GROUP
protected PartialUpdateMergeFunction(InternalRow.FieldGetter[] getters, boolean ignoreDelete, Map<Integer,FieldsComparator> fieldSeqComparators, Map<Integer,FieldAggregator> fieldAggregators, boolean fieldSequenceEnabled, boolean removeRecordOnDelete)
public void reset()
MergeFunctionreset in interface MergeFunction<KeyValue>public void add(KeyValue kv)
MergeFunctionKeyValue to the merge function.add in interface MergeFunction<KeyValue>public KeyValue getResult()
MergeFunctiongetResult in interface MergeFunction<KeyValue>Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.