public abstract class BaseAvroPayload extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isDeletedRecord |
protected Comparable |
orderingVal
For purposes of preCombining.
|
protected byte[] |
recordBytes
Avro data extracted from the source converted to bytes.
|
| Constructor and Description |
|---|
BaseAvroPayload(org.apache.avro.generic.GenericRecord record,
Comparable orderingVal)
Instantiate
BaseAvroPayload. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProduceSentinel()
Defines whether this implementation of
HoodieRecordPayload could produce
HoodieRecord.SENTINEL |
Comparable |
getOrderingVal() |
boolean |
isDeleted(org.apache.avro.Schema schema,
Properties props)
Defines whether this implementation of
HoodieRecordPayload is deleted. |
protected boolean |
isDeleteRecord(org.apache.avro.generic.GenericRecord genericRecord) |
protected final byte[] recordBytes
protected final Comparable orderingVal
protected final boolean isDeletedRecord
public BaseAvroPayload(org.apache.avro.generic.GenericRecord record,
Comparable orderingVal)
BaseAvroPayload.record - Generic record for the payload.orderingVal - Comparable to be used in pre combine.public Comparable getOrderingVal()
public boolean isDeleted(org.apache.avro.Schema schema,
Properties props)
HoodieRecordPayload is deleted.
We will not do deserialization in this method.public boolean canProduceSentinel()
HoodieRecordPayload could produce
HoodieRecord.SENTINELprotected boolean isDeleteRecord(org.apache.avro.generic.GenericRecord genericRecord)
genericRecord - instance of GenericRecord of interest.Copyright © 2024 The Apache Software Foundation. All rights reserved.