public class WriteProfiles extends Object
WriteProfile.| Modifier and Type | Method and Description |
|---|---|
static void |
clean(String path) |
static HoodieCommitMetadata |
getCommitMetadata(String tableName,
org.apache.flink.core.fs.Path basePath,
HoodieInstant instant,
HoodieTimeline timeline)
Returns the commit metadata of the given instant.
|
static Option<HoodieCommitMetadata> |
getCommitMetadataSafely(String tableName,
org.apache.flink.core.fs.Path basePath,
HoodieInstant instant,
HoodieTimeline timeline)
Returns the commit metadata of the given instant safely.
|
static org.apache.hadoop.fs.FileStatus[] |
getFilesFromMetadata(org.apache.flink.core.fs.Path basePath,
org.apache.hadoop.conf.Configuration hadoopConf,
List<HoodieCommitMetadata> metadataList,
HoodieTableType tableType)
Returns all the incremental write file statuses with the given commits metadata.
|
static org.apache.hadoop.fs.FileStatus[] |
getFilesFromMetadata(org.apache.flink.core.fs.Path basePath,
org.apache.hadoop.conf.Configuration hadoopConf,
List<HoodieCommitMetadata> metadataList,
HoodieTableType tableType,
boolean ignoreMissingFiles)
Returns all the incremental write file statuses with the given commits metadata.
|
static WriteProfile |
singleton(boolean ignoreSmallFiles,
boolean delta,
HoodieWriteConfig config,
HoodieFlinkEngineContext context) |
public static WriteProfile singleton(boolean ignoreSmallFiles, boolean delta, HoodieWriteConfig config, HoodieFlinkEngineContext context)
public static void clean(String path)
public static org.apache.hadoop.fs.FileStatus[] getFilesFromMetadata(org.apache.flink.core.fs.Path basePath,
org.apache.hadoop.conf.Configuration hadoopConf,
List<HoodieCommitMetadata> metadataList,
HoodieTableType tableType)
basePath - Table base pathhadoopConf - The hadoop confmetadataList - The commit metadata list (should in ascending order)tableType - The table type@Nullable public static org.apache.hadoop.fs.FileStatus[] getFilesFromMetadata(org.apache.flink.core.fs.Path basePath, org.apache.hadoop.conf.Configuration hadoopConf, List<HoodieCommitMetadata> metadataList, HoodieTableType tableType, boolean ignoreMissingFiles)
basePath - Table base pathhadoopConf - The hadoop confmetadataList - The commit metadata list (should in ascending order)tableType - The table typeignoreMissingFiles - Whether to ignore the missing files from filesystempublic static Option<HoodieCommitMetadata> getCommitMetadataSafely(String tableName, org.apache.flink.core.fs.Path basePath, HoodieInstant instant, HoodieTimeline timeline)
tableName - The table namebasePath - The table base pathinstant - The hoodie instanttimeline - The timelinepublic static HoodieCommitMetadata getCommitMetadata(String tableName, org.apache.flink.core.fs.Path basePath, HoodieInstant instant, HoodieTimeline timeline)
tableName - The table namebasePath - The table base pathinstant - The hoodie instanttimeline - The timelineCopyright © 2023 The Apache Software Foundation. All rights reserved.