public class HoodieRecord<T extends HoodieRecordPayload> extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
COMMIT_SEQNO_METADATA_FIELD |
static String |
COMMIT_TIME_METADATA_FIELD |
static String |
FILENAME_METADATA_FIELD |
static List<String> |
HOODIE_META_COLUMNS |
static Map<String,Integer> |
HOODIE_META_COLUMNS_NAME_TO_POS |
static String |
PARTITION_PATH_METADATA_FIELD |
static String |
RECORD_KEY_METADATA_FIELD |
| Constructor and Description |
|---|
HoodieRecord(HoodieKey key,
T data) |
HoodieRecord(HoodieRecord<T> record) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkState() |
void |
deflate()
Release the actual payload, to ease memory pressure.
|
boolean |
equals(Object o) |
static String |
generateSequenceId(String instantTime,
int partitionId,
long recordIndex) |
HoodieRecordLocation |
getCurrentLocation() |
T |
getData() |
HoodieKey |
getKey() |
Option<HoodieRecordLocation> |
getNewLocation() |
String |
getPartitionPath() |
String |
getRecordKey() |
int |
hashCode() |
boolean |
isCurrentLocationKnown() |
void |
seal() |
HoodieRecord |
setCurrentLocation(HoodieRecordLocation location)
Sets the current currentLocation of the record.
|
HoodieRecord |
setNewLocation(HoodieRecordLocation location)
Sets the new currentLocation of the record, after being written.
|
String |
toString() |
void |
unseal() |
public static final String COMMIT_TIME_METADATA_FIELD
public static final String COMMIT_SEQNO_METADATA_FIELD
public static final String RECORD_KEY_METADATA_FIELD
public static final String PARTITION_PATH_METADATA_FIELD
public static final String FILENAME_METADATA_FIELD
public HoodieRecord(HoodieRecord<T> record)
public HoodieKey getKey()
public T getData()
public void deflate()
public HoodieRecord setCurrentLocation(HoodieRecordLocation location)
public HoodieRecordLocation getCurrentLocation()
public HoodieRecord setNewLocation(HoodieRecordLocation location)
public Option<HoodieRecordLocation> getNewLocation()
public boolean isCurrentLocationKnown()
public static String generateSequenceId(String instantTime, int partitionId, long recordIndex)
public String getPartitionPath()
public String getRecordKey()
public void seal()
public void unseal()
public void checkState()
Copyright © 2021 The Apache Software Foundation. All rights reserved.