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[] |
getRawWritePathsOfInstants(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[] |
getWritePathsOfInstants(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 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[] getRawWritePathsOfInstants(org.apache.flink.core.fs.Path basePath,
org.apache.hadoop.conf.Configuration hadoopConf,
List<HoodieCommitMetadata> metadataList,
HoodieTableType tableType)
Different with getWritePathsOfInstants(org.apache.flink.core.fs.Path, org.apache.hadoop.conf.Configuration, java.util.List<org.apache.hudi.common.model.HoodieCommitMetadata>, org.apache.hudi.common.model.HoodieTableType), the files are not filtered by
existence.
basePath - Table base pathhadoopConf - The hadoop confmetadataList - The commits metadatatableType - The table typepublic static org.apache.hadoop.fs.FileStatus[] getWritePathsOfInstants(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 commits metadatatableType - The table typepublic 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 © 2022 The Apache Software Foundation. All rights reserved.