UCClient¶
UCClient is an abstraction of Unity Catalog clients that can getMetastoreId.
UCClient is an AutoCloseable (Java).
Contract (Subset)¶
commit¶
commit(
String tableId,
URI tableUri,
Optional<Commit> commit,
Optional<Long> lastKnownBackfilledVersion,
boolean disown,
Optional<AbstractMetadata> newMetadata,
Optional<AbstractProtocol> newProtocol,
Optional<UniformMetadata> uniform
) throws IOException, CommitFailedException, UCCommitCoordinatorException
See:
Used when:
UCCatalogManagedCommitteris requested to commitToUCUCCommitCoordinatorClientis requested to commitToUC
finalizeCreate¶
void finalizeCreate(
String tableName,
String catalogName,
String schemaName,
String storageLocation,
List<ColumnDef> columns,
Map<String, String> properties)
throws CommitFailedException
See:
Used when:
UCCatalogManagedCommitteris requested to finalizeTableInCatalog
getCommits¶
GetCommitsResponse getCommits(
String tableId,
URI tableUri,
Optional<Long> startVersion,
Optional<Long> endVersion)
throws IOException, UCCommitCoordinatorException
See:
Used when:
UCCatalogManagedClientis requested to getRatifiedCommitsFromUCUCCommitCoordinatorClientis requested to getCommitsFromUCImpl
getMetastoreId¶
See:
Used when:
UCCommitCoordinatorBuilderis requested to getMetastoreId
Implementations¶
InMemoryUCClient- UCTokenBasedRestClient