Package org.apache.flink.table.catalog
Class CatalogDescriptor
- java.lang.Object
-
- org.apache.flink.table.catalog.CatalogDescriptor
-
@PublicEvolving public class CatalogDescriptor extends Object
Describes aCatalog
with the catalog name and configuration.A
CatalogDescriptor
is a template for creating aCatalog
instance. It closely resembles the "CREATE CATALOG" SQL DDL statement, containing catalog name and catalog configuration. ACatalogDescriptor
could 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 String
getCatalogName()
Optional<String>
getComment()
Configuration
getConfiguration()
static CatalogDescriptor
of(String catalogName, Configuration configuration)
static CatalogDescriptor
of(String catalogName, Configuration configuration, String comment)
Creates an instance of this interface.CatalogDescriptor
setComment(String comment)
-
-
-
Method Detail
-
getCatalogName
public String getCatalogName()
-
getConfiguration
public Configuration getConfiguration()
-
setComment
public CatalogDescriptor setComment(@Nonnull String comment)
-
of
public static CatalogDescriptor of(String catalogName, 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, Configuration configuration)
-
-