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).| 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 © 2022 The Apache Software Foundation. All rights reserved.