public class CommitUtils extends Object
| Constructor and Description |
|---|
CommitUtils() |
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 Option<HoodieCommitMetadata> buildMetadataFromInstant(HoodieDefaultTimeline timeline, HoodieInstant instant)
public static Set<Pair<String,String>> getPartitionAndFileIdWithoutSuffixFromSpecificRecord(Map<String,List<HoodieWriteStat>> partitionToWriteStats)
public static Set<Pair<String,String>> getPartitionAndFileIdWithoutSuffix(Map<String,List<HoodieWriteStat>> partitionToWriteStats)
public static Set<Pair<String,String>> flattenPartitionToReplaceFileIds(Map<String,List<String>> partitionToReplaceFileIds)
public static Option<String> getValidCheckpointForCurrentWriter(HoodieTimeline timeline, String checkpointKey, String keyToLookup)
timeline - completed commits in active timeline.checkpointKey - the checkpoint key in the extra metadata of the commit.keyToLookup - key of interest for which checkpoint is looked up for.Copyright © 2024 The Apache Software Foundation. All rights reserved.