public class HoodieAvroRecordMerger extends Object implements HoodieRecordMerger, OperationModeAwareness
It should only be used for base record from disk to merge with incoming record.
| Modifier and Type | Field and Description |
|---|---|
static HoodieAvroRecordMerger |
INSTANCE |
DEFAULT_MERGER_STRATEGY_UUID| Constructor and Description |
|---|
HoodieAvroRecordMerger() |
| Modifier and Type | Method and Description |
|---|---|
HoodieRecordMerger |
asPreCombiningMode()
Specifies the legacy operation mode as preCombining.
|
String |
getMergingStrategy()
The kind of merging strategy this recordMerger belongs to.
|
HoodieRecord.HoodieRecordType |
getRecordType()
The record type handled by the current merger.
|
Option<Pair<HoodieRecord,org.apache.avro.Schema>> |
merge(HoodieRecord older,
org.apache.avro.Schema oldSchema,
HoodieRecord newer,
org.apache.avro.Schema newSchema,
TypedProperties props)
This method converges combineAndGetUpdateValue and precombine from HoodiePayload.
|
public static final HoodieAvroRecordMerger INSTANCE
public String getMergingStrategy()
HoodieRecordMergergetMergingStrategy in interface HoodieRecordMergerpublic Option<Pair<HoodieRecord,org.apache.avro.Schema>> merge(HoodieRecord older, org.apache.avro.Schema oldSchema, HoodieRecord newer, org.apache.avro.Schema newSchema, TypedProperties props) throws IOException
HoodieRecordMergermerge in interface HoodieRecordMergerIOExceptionpublic HoodieRecord.HoodieRecordType getRecordType()
HoodieRecordMergergetRecordType in interface HoodieRecordMergerpublic HoodieRecordMerger asPreCombiningMode()
OperationModeAwarenessThe preCombining takes place in two cases: i). In memory records merging during data ingestion; ii). Log records merging for MOR reader.
asPreCombiningMode in interface OperationModeAwarenessCopyright © 2024 The Apache Software Foundation. All rights reserved.