public interface HoodieTableMetadataWriter extends Serializable, AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
buildMetadataPartitions(HoodieEngineContext engineContext,
List<HoodieIndexPartitionInfo> indexPartitionInfos)
Builds the given metadata partitions to create index.
|
void |
deletePartitions(String instantTime,
List<MetadataPartitionType> partitions)
Deletes the given metadata partitions.
|
void |
dropMetadataPartitions(List<MetadataPartitionType> metadataPartitions)
Drop the given metadata partitions.
|
void |
initializeMetadataPartitions(HoodieTableMetaClient dataMetaClient,
List<MetadataPartitionType> metadataPartitions,
String instantTime)
Initialize file groups for the given metadata partitions when indexing is requested.
|
void |
update(HoodieCleanMetadata cleanMetadata,
String instantTime)
Update the metadata table due to a CLEAN operation.
|
void |
update(HoodieCommitMetadata commitMetadata,
String instantTime,
boolean isTableServiceAction)
Update the metadata table due to a COMMIT operation.
|
void |
update(HoodieRestoreMetadata restoreMetadata,
String instantTime)
Update the metadata table due to a RESTORE operation.
|
void |
update(HoodieRollbackMetadata rollbackMetadata,
String instantTime)
Update the metadata table due to a ROLLBACK operation.
|
closevoid buildMetadataPartitions(HoodieEngineContext engineContext, List<HoodieIndexPartitionInfo> indexPartitionInfos)
engineContext - indexPartitionInfos - - information about partitions to build such as partition type and base instant timevoid initializeMetadataPartitions(HoodieTableMetaClient dataMetaClient, List<MetadataPartitionType> metadataPartitions, String instantTime) throws IOException
dataMetaClient - - meta client for the data tablemetadataPartitions - - metadata partitions for which file groups needs to be initializedinstantTime - - instant time of the index actionIOExceptionvoid dropMetadataPartitions(List<MetadataPartitionType> metadataPartitions) throws IOException
metadataPartitions - IOExceptionvoid update(HoodieCommitMetadata commitMetadata, String instantTime, boolean isTableServiceAction)
commitMetadata - commit metadata of the operation of interest.instantTime - instant time of the commit.isTableServiceAction - true if caller is a table service. false otherwise. Only regular write operations can trigger metadata table services and this argument
will assist in this.void update(HoodieCleanMetadata cleanMetadata, String instantTime)
cleanMetadata - clean metadata of the operation of interest.instantTime - instant time of the commit.void update(HoodieRestoreMetadata restoreMetadata, String instantTime)
restoreMetadata - restore metadata of the operation of interest.instantTime - instant time of the commit.void update(HoodieRollbackMetadata rollbackMetadata, String instantTime)
rollbackMetadata - rollback metadata of the operation of interest.instantTime - instant time of the commit.void deletePartitions(String instantTime, List<MetadataPartitionType> partitions)
instantTime - - instant time when replacecommit corresponding to the drop will be recorded in the metadata timelinepartitions - - list of MetadataPartitionType to dropCopyright © 2022 The Apache Software Foundation. All rights reserved.