Skip to content

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:

  • UCCatalogManagedCommitter is requested to commitToUC
  • UCCommitCoordinatorClient is 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:

getCommits

GetCommitsResponse getCommits(
  String tableId,
  URI tableUri,
  Optional<Long> startVersion,
  Optional<Long> endVersion)
throws IOException, UCCommitCoordinatorException

See:

Used when:

getMetastoreId

String getMetastoreId() throws IOException

See:

Used when:

Implementations