@PublicEvolving
public interface CatalogRegistry
| Modifier and Type | Method and Description |
|---|---|
Optional<org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?>> |
getCatalogBaseTable(org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier)
Retrieves a fully qualified table.
|
org.apache.flink.table.catalog.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<org.apache.flink.table.catalog.CatalogPartition> |
getPartition(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier,
org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)
Retrieves a partition with a fully qualified table path and partition spec.
|
boolean |
isTemporaryTable(org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier)
Return whether the table with a fully qualified table path is temporary or not.
|
org.apache.flink.table.catalog.ObjectIdentifier |
qualifyIdentifier(org.apache.flink.table.catalog.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()
org.apache.flink.table.catalog.ObjectIdentifier qualifyIdentifier(org.apache.flink.table.catalog.UnresolvedIdentifier identifier)
identifier's length.identifier - an unresolved identifierorg.apache.flink.table.catalog.Catalog getCatalogOrError(String catalogName) throws org.apache.flink.table.api.CatalogNotExistException
catalogName - name of the catalog to retrieveorg.apache.flink.table.api.CatalogNotExistException - if the catalog does not existOptional<org.apache.flink.table.catalog.ResolvedCatalogBaseTable<?>> getCatalogBaseTable(org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier)
qualifyIdentifier(UnresolvedIdentifier) first.objectIdentifier - full path of the table to retrieveboolean isTemporaryTable(org.apache.flink.table.catalog.ObjectIdentifier objectIdentifier)
objectIdentifier - full path of the tableOptional<org.apache.flink.table.catalog.CatalogPartition> getPartition(org.apache.flink.table.catalog.ObjectIdentifier tableIdentifier, org.apache.flink.table.catalog.CatalogPartitionSpec partitionSpec)
tableIdentifier - full path of the table to retrievepartitionSpec - full partition specCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.