public class OverwriteWithLatestAvroPayload extends BaseAvroPayload implements HoodieRecordPayload<OverwriteWithLatestAvroPayload>
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.
|
protected boolean |
isDeleteRecord(org.apache.avro.generic.GenericRecord genericRecord) |
Boolean |
overwriteField(Object value,
Object defaultValue)
Return true if value equals defaultValue otherwise false.
|
OverwriteWithLatestAvroPayload |
preCombine(OverwriteWithLatestAvroPayload another)
This method is deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombineAndGetUpdateValue, getInsertValue, getMetadata, preCombinepublic OverwriteWithLatestAvroPayload(org.apache.avro.generic.GenericRecord record,
Comparable orderingVal)
public OverwriteWithLatestAvroPayload(Option<org.apache.avro.generic.GenericRecord> record)
public OverwriteWithLatestAvroPayload preCombine(OverwriteWithLatestAvroPayload another)
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.IOExceptionprotected boolean isDeleteRecord(org.apache.avro.generic.GenericRecord genericRecord)
genericRecord - instance of GenericRecord of interest.Copyright © 2021 The Apache Software Foundation. All rights reserved.