Package org.apache.flink.table.catalog
Class CatalogDescriptor
java.lang.Object
org.apache.flink.table.catalog.CatalogDescriptor
Describes a
Catalog with the catalog name and configuration.
A CatalogDescriptor is a template for creating a Catalog instance. It closely
resembles the "CREATE CATALOG" SQL DDL statement, containing catalog name and catalog
configuration. A CatalogDescriptor could be stored to CatalogStore.
This can be used to register a catalog in the Table API, see TableEnvironment#createCatalog(String, CatalogDescriptor).
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.flink.configuration.Configurationstatic CatalogDescriptorstatic CatalogDescriptorCreates an instance of this interface.setComment(String comment)
-
Method Details
-
getCatalogName
-
getConfiguration
public org.apache.flink.configuration.Configuration getConfiguration() -
getComment
-
setComment
-
of
public static CatalogDescriptor of(String catalogName, org.apache.flink.configuration.Configuration configuration, String comment) Creates an instance of this interface.- Parameters:
catalogName- the name of the catalogconfiguration- the configuration of the catalogcomment- the comment of the catalog
-
of
public static CatalogDescriptor of(String catalogName, org.apache.flink.configuration.Configuration configuration)
-