public class OverwriteWithLatestAvroPayload extends BaseAvroPayload implements HoodieRecordPayload<OverwriteWithLatestAvroPayload>
isDeletedRecord, orderingVal, recordBytes| Constructor and Description |
|---|
OverwriteWithLatestAvroPayload(org.apache.avro.generic.GenericRecord record,
Comparable orderingVal) |
OverwriteWithLatestAvroPayload(Option<org.apache.avro.generic.GenericRecord> record) |
| Modifier and Type | Method and Description |
|---|---|
Option<org.apache.avro.generic.IndexedRecord> |
combineAndGetUpdateValue(org.apache.avro.generic.IndexedRecord currentValue,
org.apache.avro.Schema schema)
This methods is deprecated.
|
Option<org.apache.avro.generic.IndexedRecord> |
getInsertValue(org.apache.avro.Schema schema)
This method is deprecated.
|
Comparable<?> |
getOrderingValue()
This method can be used to extract the ordering value of the payload for combining/merging,
or 0 if no value is specified which means natural order(arrival time is used).
|
Boolean |
overwriteField(Object value,
Object defaultValue)
Return true if value equals defaultValue otherwise false.
|
OverwriteWithLatestAvroPayload |
preCombine(OverwriteWithLatestAvroPayload oldValue)
This method is deprecated.
|
canProduceSentinel, getOrderingVal, isDeleted, isDeleteRecordclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombineAndGetUpdateValue, getInsertValue, getMetadata, preCombine, preCombinepublic OverwriteWithLatestAvroPayload(org.apache.avro.generic.GenericRecord record,
Comparable orderingVal)
public OverwriteWithLatestAvroPayload(Option<org.apache.avro.generic.GenericRecord> record)
public OverwriteWithLatestAvroPayload preCombine(OverwriteWithLatestAvroPayload oldValue)
HoodieRecordPayloadHoodieRecordPayload.preCombine(HoodieRecordPayload, Properties) method.preCombine in interface HoodieRecordPayload<OverwriteWithLatestAvroPayload>public Option<org.apache.avro.generic.IndexedRecord> combineAndGetUpdateValue(org.apache.avro.generic.IndexedRecord currentValue, org.apache.avro.Schema schema) throws IOException
HoodieRecordPayloadHoodieRecordPayload.combineAndGetUpdateValue(IndexedRecord, Schema, Properties) for java docs.combineAndGetUpdateValue in interface HoodieRecordPayload<OverwriteWithLatestAvroPayload>IOExceptionpublic Option<org.apache.avro.generic.IndexedRecord> getInsertValue(org.apache.avro.Schema schema) throws IOException
HoodieRecordPayloadHoodieRecordPayload.getInsertValue(Schema, Properties) for java docs.getInsertValue in interface HoodieRecordPayload<OverwriteWithLatestAvroPayload>schema - Schema used for recordIndexedRecord to be inserted.IOExceptionpublic Boolean overwriteField(Object value, Object defaultValue)
public Comparable<?> getOrderingValue()
HoodieRecordPayloadgetOrderingValue in interface HoodieRecordPayload<OverwriteWithLatestAvroPayload>Copyright © 2024 The Apache Software Foundation. All rights reserved.