public class HoodieReplaceCommitMetadata extends HoodieCommitMetadata
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,List<String>> |
partitionToReplaceFileIds |
compacted, extraMetadata, operationType, partitionToWriteStats, SCHEMA_KEY| Constructor and Description |
|---|
HoodieReplaceCommitMetadata() |
HoodieReplaceCommitMetadata(boolean compacted) |
| Modifier and Type | Method and Description |
|---|---|
void |
addReplaceFileId(String partitionPath,
String fileId) |
boolean |
equals(Object o) |
static <T> T |
fromBytes(byte[] bytes,
Class<T> clazz) |
static <T> T |
fromJsonString(String jsonStr,
Class<T> clazz) |
Map<String,List<String>> |
getPartitionToReplaceFileIds() |
List<String> |
getReplaceFileIds(String partitionPath) |
int |
hashCode() |
void |
setPartitionToReplaceFileIds(Map<String,List<String>> partitionToReplaceFileIds) |
String |
toJsonString() |
String |
toString() |
addMetadata, addWriteStat, fetchTotalBytesWritten, fetchTotalFilesInsert, fetchTotalFilesUpdated, fetchTotalInsertRecordsWritten, fetchTotalPartitionsWritten, fetchTotalRecordsWritten, fetchTotalUpdateRecordsWritten, fetchTotalWriteErrors, getCompacted, getExtraMetadata, getFileGroupIdAndFullPaths, getFileIdAndFullPaths, getFileIdAndRelativePaths, getFileIdToInfo, getFileSliceForFileGroupFromDeltaCommit, getFullPathsByPartitionPath, getFullPathToInfo, getMetadata, getMinAndMaxEventTime, getOperationType, getPartitionToWriteStats, getTotalCompactedRecordsUpdated, getTotalCorruptLogBlocks, getTotalCreateTime, getTotalLogFilesCompacted, getTotalLogFilesSize, getTotalLogRecordsCompacted, getTotalRecordsDeleted, getTotalRollbackLogBlocks, getTotalScanTime, getTotalUpsertTime, getWritePartitionPaths, getWriteStats, getWriteStats, setCompacted, setOperationTypepublic HoodieReplaceCommitMetadata()
public HoodieReplaceCommitMetadata(boolean compacted)
public void setPartitionToReplaceFileIds(Map<String,List<String>> partitionToReplaceFileIds)
public String toJsonString() throws IOException
toJsonString in class HoodieCommitMetadataIOExceptionpublic static <T> T fromJsonString(String jsonStr, Class<T> clazz) throws Exception
Exceptionpublic boolean equals(Object o)
equals in class HoodieCommitMetadatapublic int hashCode()
hashCode in class HoodieCommitMetadatapublic static <T> T fromBytes(byte[] bytes,
Class<T> clazz)
throws IOException
IOExceptionpublic String toString()
toString in class HoodieCommitMetadataCopyright © 2024 The Apache Software Foundation. All rights reserved.