public class DeleteRecord extends Object implements Serializable
HoodieDeleteBlock
to support per-record deletions. The deletion block is always appended after the data block,
we need to keep the ordering val to combine with the data records when merging, or the data loss
may occur if there are intermediate deletions for the inputs
(a new INSERT comes after a DELETE in one input batch).
NOTE: PLEASE READ CAREFULLY BEFORE CHANGING
This class is serialized (using Kryo) as part of HoodieDeleteBlock to make
sure this stays backwards-compatible we can't MAKE ANY CHANGES TO THIS CLASS (add,
delete, reorder or change types of the fields in this class, make class final, etc)
as this would break its compatibility with already persisted blocks.
Check out HUDI-5760 for more details| Modifier and Type | Method and Description |
|---|---|
static DeleteRecord |
create(HoodieKey hoodieKey) |
static DeleteRecord |
create(HoodieKey hoodieKey,
Comparable orderingVal) |
static DeleteRecord |
create(String recordKey,
String partitionPath) |
static DeleteRecord |
create(String recordKey,
String partitionPath,
Comparable orderingVal) |
boolean |
equals(Object o) |
HoodieKey |
getHoodieKey() |
Comparable<?> |
getOrderingValue() |
String |
getPartitionPath() |
String |
getRecordKey() |
int |
hashCode() |
String |
toString() |
public static DeleteRecord create(HoodieKey hoodieKey)
public static DeleteRecord create(String recordKey, String partitionPath)
public static DeleteRecord create(String recordKey, String partitionPath, Comparable orderingVal)
public static DeleteRecord create(HoodieKey hoodieKey, Comparable orderingVal)
public String getRecordKey()
public String getPartitionPath()
public HoodieKey getHoodieKey()
public Comparable<?> getOrderingValue()
Copyright © 2024 The Apache Software Foundation. All rights reserved.