public class CommitUtils extends Object
| Constructor and Description |
|---|
CommitUtils() |
| Modifier and Type | Method and Description |
|---|---|
static HoodieCommitMetadata |
buildMetadata(List<HoodieWriteStat> writeStats,
Map<String,List<String>> partitionToReplaceFileIds,
Option<Map<String,String>> extraMetadata,
WriteOperationType operationType,
String schemaToStoreInCommit,
String commitActionType) |
static String |
getCommitActionType(HoodieTableType tableType)
Gets the commit action type for given table type.
|
static String |
getCommitActionType(WriteOperationType operation,
HoodieTableType tableType)
Gets the commit action type for given write operation and table type.
|
static HashMap<String,String> |
getFileIdWithoutSuffixAndRelativePaths(Map<String,List<HoodieWriteStat>> partitionToWriteStats) |
static HashMap<String,String> |
getFileIdWithoutSuffixAndRelativePathsFromSpecificRecord(Map<String,List<HoodieWriteStat>> partitionToWriteStats) |
static Option<HoodieCommitMetadata> |
getLatestCommitMetadataWithValidCheckpointInfo(HoodieTimeline timeline,
String checkpointKey)
Process previous commits metadata in the timeline to determine the checkpoint given a checkpoint key.
|
public static String getCommitActionType(WriteOperationType operation, HoodieTableType tableType)
public static String getCommitActionType(HoodieTableType tableType)
getCommitActionType(WriteOperationType, HoodieTableType) for more details.public static HoodieCommitMetadata buildMetadata(List<HoodieWriteStat> writeStats, Map<String,List<String>> partitionToReplaceFileIds, Option<Map<String,String>> extraMetadata, WriteOperationType operationType, String schemaToStoreInCommit, String commitActionType)
public static HashMap<String,String> getFileIdWithoutSuffixAndRelativePathsFromSpecificRecord(Map<String,List<HoodieWriteStat>> partitionToWriteStats)
public static HashMap<String,String> getFileIdWithoutSuffixAndRelativePaths(Map<String,List<HoodieWriteStat>> partitionToWriteStats)
public static Option<HoodieCommitMetadata> getLatestCommitMetadataWithValidCheckpointInfo(HoodieTimeline timeline, String checkpointKey)
timeline - completed commits in active timeline.checkpointKey - the checkpoint key in the extra metadata of the commit.Copyright © 2022 The Apache Software Foundation. All rights reserved.