public abstract class BaseTableMetadata extends Object implements HoodieTableMetadata
| Modifier and Type | Field and Description |
|---|---|
protected String |
datasetBasePath |
protected HoodieTableMetaClient |
datasetMetaClient |
protected boolean |
enabled |
protected HoodieEngineContext |
engineContext |
protected SerializableConfiguration |
hadoopConf |
protected HoodieMetadataConfig |
metadataConfig |
protected Option<HoodieMetadataMetrics> |
metrics |
protected String |
spillableMapDirectory |
METADATA_TABLE_NAME_SUFFIX, METADATA_TABLE_REL_PATH, NON_PARTITIONED_NAME, RECORDKEY_PARTITION_LIST, SOLO_COMMIT_TIMESTAMP| Modifier | Constructor and Description |
|---|---|
protected |
BaseTableMetadata(HoodieEngineContext engineContext,
HoodieMetadataConfig metadataConfig,
String datasetBasePath,
String spillableMapDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
fetchAllPartitionPaths()
Returns a list of all partitions.
|
protected abstract List<HoodieInstant> |
findInstantsToSync() |
org.apache.hadoop.fs.FileStatus[] |
getAllFilesInPartition(org.apache.hadoop.fs.Path partitionPath)
Return the list of files in a partition.
|
List<String> |
getAllPartitionPaths()
Return the list of partitions in the dataset.
|
protected HoodieEngineContext |
getEngineContext() |
protected String |
getLatestDatasetInstantTime() |
protected abstract Option<HoodieRecord<HoodieMetadataPayload>> |
getRecordByKeyFromMetadata(String key) |
boolean |
isInSync() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, getMetadataTableBasePath, getSyncedInstantTime, isMetadataTablecloseprotected final transient HoodieEngineContext engineContext
protected final SerializableConfiguration hadoopConf
protected final String datasetBasePath
protected final HoodieTableMetaClient datasetMetaClient
protected final Option<HoodieMetadataMetrics> metrics
protected final HoodieMetadataConfig metadataConfig
protected final String spillableMapDirectory
protected boolean enabled
protected BaseTableMetadata(HoodieEngineContext engineContext, HoodieMetadataConfig metadataConfig, String datasetBasePath, String spillableMapDirectory)
public List<String> getAllPartitionPaths() throws IOException
FileSystem.
On any errors retrieving the listing from the metadata, defaults to using the file system listings.getAllPartitionPaths in interface HoodieTableMetadataIOExceptionpublic org.apache.hadoop.fs.FileStatus[] getAllFilesInPartition(org.apache.hadoop.fs.Path partitionPath)
throws IOException
FileSystem.
On any errors retrieving the listing from the metadata, defaults to using the file system listings.getAllFilesInPartition in interface HoodieTableMetadatapartitionPath - The absolute path of the partition to listIOExceptionprotected List<String> fetchAllPartitionPaths() throws IOException
IOExceptionprotected abstract Option<HoodieRecord<HoodieMetadataPayload>> getRecordByKeyFromMetadata(String key)
protected abstract List<HoodieInstant> findInstantsToSync()
public boolean isInSync()
isInSync in interface HoodieTableMetadataprotected HoodieEngineContext getEngineContext()
protected String getLatestDatasetInstantTime()
Copyright © 2021 The Apache Software Foundation. All rights reserved.