@PublicEvolving public interface CatalogRegistry
Modifier and Type | Method and Description |
---|---|
Optional<ResolvedCatalogBaseTable<?>> |
getCatalogBaseTable(ObjectIdentifier objectIdentifier)
Retrieves a fully qualified table.
|
Catalog |
getCatalogOrError(String catalogName)
Gets a catalog by name.
|
String |
getCurrentCatalog()
Gets the name of the current catalog.
|
String |
getCurrentDatabase()
Get the name of the current database.
|
Optional<CatalogPartition> |
getPartition(ObjectIdentifier tableIdentifier,
CatalogPartitionSpec partitionSpec)
Retrieves a partition with a fully qualified table path and partition spec.
|
boolean |
isTemporaryTable(ObjectIdentifier objectIdentifier)
Return whether the table with a fully qualified table path is temporary or not.
|
ObjectIdentifier |
qualifyIdentifier(UnresolvedIdentifier identifier)
Returns the full name of the given table path, this name may be padded with current
catalog/database name based on the
identifier's length. |
String getCurrentDatabase()
String getCurrentCatalog()
ObjectIdentifier qualifyIdentifier(UnresolvedIdentifier identifier)
identifier's
length.identifier
- an unresolved identifierCatalog getCatalogOrError(String catalogName) throws CatalogNotExistException
catalogName
- name of the catalog to retrieveCatalogNotExistException
- if the catalog does not existOptional<ResolvedCatalogBaseTable<?>> getCatalogBaseTable(ObjectIdentifier objectIdentifier)
qualifyIdentifier(UnresolvedIdentifier)
first.objectIdentifier
- full path of the table to retrieveboolean isTemporaryTable(ObjectIdentifier objectIdentifier)
objectIdentifier
- full path of the tableOptional<CatalogPartition> getPartition(ObjectIdentifier tableIdentifier, CatalogPartitionSpec partitionSpec)
tableIdentifier
- full path of the table to retrievepartitionSpec
- full partition specCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.