public interface HoodieTableMetadata extends Serializable, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static String |
METADATA_TABLE_NAME_SUFFIX |
static String |
METADATA_TABLE_REL_PATH |
static String |
NON_PARTITIONED_NAME |
static String |
RECORDKEY_PARTITION_LIST |
static String |
SOLO_COMMIT_TIMESTAMP
Timestamp for a commit when the base dataset had not had any commits yet.
|
| Modifier and Type | Method and Description |
|---|---|
static HoodieTableMetadata |
create(HoodieEngineContext engineContext,
HoodieMetadataConfig metadataConfig,
String datasetBasePath,
String spillableMapPath) |
static HoodieTableMetadata |
create(HoodieEngineContext engineContext,
HoodieMetadataConfig metadataConfig,
String datasetBasePath,
String spillableMapPath,
boolean reuse) |
org.apache.hadoop.fs.FileStatus[] |
getAllFilesInPartition(org.apache.hadoop.fs.Path partitionPath)
Fetch all the files at the given partition path, per the latest snapshot of the metadata.
|
List<String> |
getAllPartitionPaths()
Fetch list of all partition paths, per the latest snapshot of the metadata.
|
static String |
getMetadataTableBasePath(String tableBasePath)
Return the base path of the Metadata Table.
|
Option<String> |
getSyncedInstantTime()
Get the instant time to which the metadata is synced w.r.t data timeline.
|
boolean |
isInSync() |
static boolean |
isMetadataTable(String basePath)
Returns
True if the given path contains a metadata table. |
closestatic final String METADATA_TABLE_NAME_SUFFIX
static final String SOLO_COMMIT_TIMESTAMP
HoodieTimeline.INIT_INSTANT_TS, such that the metadata table
can be prepped even before bootstrap is done.static final String RECORDKEY_PARTITION_LIST
static final String NON_PARTITIONED_NAME
static final String METADATA_TABLE_REL_PATH
static String getMetadataTableBasePath(String tableBasePath)
tableBasePath - The base path of the datasetstatic boolean isMetadataTable(String basePath)
True if the given path contains a metadata table.basePath - The base path to checkstatic HoodieTableMetadata create(HoodieEngineContext engineContext, HoodieMetadataConfig metadataConfig, String datasetBasePath, String spillableMapPath)
static HoodieTableMetadata create(HoodieEngineContext engineContext, HoodieMetadataConfig metadataConfig, String datasetBasePath, String spillableMapPath, boolean reuse)
org.apache.hadoop.fs.FileStatus[] getAllFilesInPartition(org.apache.hadoop.fs.Path partitionPath)
throws IOException
IOExceptionList<String> getAllPartitionPaths() throws IOException
IOExceptionOption<String> getSyncedInstantTime()
boolean isInSync()
Copyright © 2021 The Apache Software Foundation. All rights reserved.