Package org.apache.flink.table.catalog
Class CatalogDescriptor
- java.lang.Object
-
- org.apache.flink.table.catalog.CatalogDescriptor
-
@PublicEvolving public class CatalogDescriptor extends Object
Describes aCatalogwith the catalog name and configuration.A
CatalogDescriptoris a template for creating aCataloginstance. It closely resembles the "CREATE CATALOG" SQL DDL statement, containing catalog name and catalog configuration. ACatalogDescriptorcould be stored toCatalogStore.This can be used to register a catalog in the Table API, see
TableEnvironment#createCatalog(String, CatalogDescriptor).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCatalogName()Optional<String>getComment()org.apache.flink.configuration.ConfigurationgetConfiguration()static CatalogDescriptorof(String catalogName, org.apache.flink.configuration.Configuration configuration)static CatalogDescriptorof(String catalogName, org.apache.flink.configuration.Configuration configuration, String comment)Creates an instance of this interface.CatalogDescriptorsetComment(String comment)
-
-
-
Method Detail
-
getCatalogName
public String getCatalogName()
-
getConfiguration
public org.apache.flink.configuration.Configuration getConfiguration()
-
setComment
public CatalogDescriptor setComment(@Nonnull String comment)
-
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)
-
-