Interface CatalogContext
-
@PublicEvolving public interface CatalogContextContext for catalog which provides the name, factory identifier and configuration to identify the same physical catalog for different logical catalog. For example, catalogs with different catalog name may be created on the same physical catalog.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static CatalogContextcreateContext(String catalogName, org.apache.flink.table.catalog.Catalog catalog)StringgetCatalogName()The catalog name.Class<? extends org.apache.flink.table.catalog.Catalog>getClazz()Class of the catalog.org.apache.flink.configuration.ConfigurationgetConfiguration()The catalog configuration.Optional<String>getFactoryIdentifier()Identifier for the catalog from factory which is used to create dynamic tables.
-
-
-
Method Detail
-
getCatalogName
String getCatalogName()
The catalog name.
-
getFactoryIdentifier
Optional<String> getFactoryIdentifier()
Identifier for the catalog from factory which is used to create dynamic tables. Notice that the factory for hive catalog will throw an exception, you can use getClazz to get catalog class.
-
getClazz
@Nullable Class<? extends org.apache.flink.table.catalog.Catalog> getClazz()
Class of the catalog.
-
getConfiguration
org.apache.flink.configuration.Configuration getConfiguration()
The catalog configuration.
-
createContext
static CatalogContext createContext(String catalogName, org.apache.flink.table.catalog.Catalog catalog)
-
-