Class CatalogDescriptor


  • @PublicEvolving
    public class CatalogDescriptor
    extends Object
    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 Detail

      • getCatalogName

        public String getCatalogName()
      • getConfiguration

        public org.apache.flink.configuration.Configuration getConfiguration()
      • 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 catalog
        configuration - the configuration of the catalog
        comment - the comment of the catalog
      • of

        public static CatalogDescriptor of​(String catalogName,
                                           org.apache.flink.configuration.Configuration configuration)