Interface CatalogContext
@PublicEvolving
public interface CatalogContext
Context 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
Modifier and TypeMethodDescriptionstatic CatalogContextcreateContext(String catalogName, org.apache.flink.table.catalog.Catalog catalog) The catalog name.Class<? extends org.apache.flink.table.catalog.Catalog>getClazz()Class of the catalog.org.apache.flink.configuration.ConfigurationThe catalog configuration.Identifier for the catalog from factory which is used to create dynamic tables.
-
Method Details
-
getCatalogName
String getCatalogName()The catalog name. -
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
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)
-