Class AbstractCatalog

java.lang.Object
org.apache.flink.table.catalog.AbstractCatalog
All Implemented Interfaces:
Catalog

@Internal public abstract class AbstractCatalog extends Object implements Catalog
Abstract class for catalogs.
  • Constructor Details

    • AbstractCatalog

      public AbstractCatalog(String name, String defaultDatabase)
  • Method Details

    • getName

      public String getName()
    • getDefaultDatabase

      public String getDefaultDatabase()
      Description copied from interface: Catalog
      Get the name of the default database for this catalog. The default database will be the current database for the catalog when user's session doesn't specify a current database. The value probably comes from configuration, will not change for the life time of the catalog instance.

      If the default database is null, users will need to set a current database themselves or qualify identifiers at least with the database name when using the catalog.

      Specified by:
      getDefaultDatabase in interface Catalog
      Returns:
      the name of the current database