public class FileSystemBackedTableMetadata extends Object implements HoodieTableMetadata
METADATA_TABLE_NAME_SUFFIX, METADATA_TABLE_REL_PATH, NON_PARTITIONED_NAME, RECORDKEY_PARTITION_LIST, SOLO_COMMIT_TIMESTAMP| Constructor and Description |
|---|
FileSystemBackedTableMetadata(HoodieEngineContext engineContext,
SerializableConfiguration conf,
String datasetBasePath,
boolean assumeDatePartitioning) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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.
|
Option<String> |
getSyncedInstantTime()
Get the instant time to which the metadata is synced w.r.t data timeline.
|
boolean |
isInSync() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, getMetadataTableBasePath, isMetadataTablepublic FileSystemBackedTableMetadata(HoodieEngineContext engineContext, SerializableConfiguration conf, String datasetBasePath, boolean assumeDatePartitioning)
public org.apache.hadoop.fs.FileStatus[] getAllFilesInPartition(org.apache.hadoop.fs.Path partitionPath)
throws IOException
HoodieTableMetadatagetAllFilesInPartition in interface HoodieTableMetadataIOExceptionpublic List<String> getAllPartitionPaths() throws IOException
HoodieTableMetadatagetAllPartitionPaths in interface HoodieTableMetadataIOExceptionpublic Option<String> getSyncedInstantTime()
HoodieTableMetadatagetSyncedInstantTime in interface HoodieTableMetadatapublic boolean isInSync()
isInSync in interface HoodieTableMetadatapublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.