TableCommitCoordinatorClient¶
TableCommitCoordinatorClient is a wrapper around CommitCoordinatorClient that provides a more user-friendly API for committing and accessing commits to a delta table.
Creating Instance¶
TableCommitCoordinatorClient takes the following to be created:
- CommitCoordinatorClient
- Log Path (of a delta table)
- Table Configuration
-
Configuration(Apache Hadoop) - LogStore
TableCommitCoordinatorClient is created when:
CatalogOwnedTableUtilsis requested to populateTableCommitCoordinatorFromCatalogCoordinatedCommitsUtilsis requested to getTableCommitCoordinatorTableCommitCoordinatorClientfactory is used to apply
Create TableCommitCoordinatorClient¶
apply(
commitCoordinatorClient: CommitCoordinatorClient,
deltaLog: DeltaLog,
coordinatedCommitsTableConf: Map[String, String]): TableCommitCoordinatorClient
apply requests the given DeltaLog for a newDeltaHadoopConf.
In the end, apply creates a TableCommitCoordinatorClient.
apply is used when:
OptimisticTransactionImplis requested to commitLarge and writeCommitFile