@PublicEvolving public class CatalogDescriptor extends Object
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).
| Modifier and Type | Method and Description |
|---|---|
String |
getCatalogName() |
Optional<String> |
getComment() |
org.apache.flink.configuration.Configuration |
getConfiguration() |
static CatalogDescriptor |
of(String catalogName,
org.apache.flink.configuration.Configuration configuration) |
static CatalogDescriptor |
of(String catalogName,
org.apache.flink.configuration.Configuration configuration,
String comment)
Creates an instance of this interface.
|
CatalogDescriptor |
setComment(String comment) |
public String getCatalogName()
public org.apache.flink.configuration.Configuration getConfiguration()
public CatalogDescriptor setComment(@Nonnull String comment)
public static CatalogDescriptor of(String catalogName, org.apache.flink.configuration.Configuration configuration, String comment)
catalogName - the name of the catalogconfiguration - the configuration of the catalogcomment - the comment of the catalogpublic static CatalogDescriptor of(String catalogName, org.apache.flink.configuration.Configuration configuration)
Copyright © 2014–2025 The Apache Software Foundation. All rights reserved.