Package org.apache.flink.table.catalog
Class AbstractCatalog
- java.lang.Object
-
- org.apache.flink.table.catalog.AbstractCatalog
-
- All Implemented Interfaces:
Catalog
- Direct Known Subclasses:
GenericInMemoryCatalog
,TestFileSystemCatalog
@Internal public abstract class AbstractCatalog extends Object implements Catalog
Abstract class for catalogs.
-
-
Constructor Summary
Constructors Constructor Description AbstractCatalog(String name, String defaultDatabase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultDatabase()
Get the name of the default database for this catalog.String
getName()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.catalog.Catalog
alterDatabase, alterFunction, alterModel, alterPartition, alterPartitionColumnStatistics, alterPartitionStatistics, alterTable, alterTable, alterTableColumnStatistics, alterTableStatistics, bulkGetPartitionColumnStatistics, bulkGetPartitionStatistics, close, createDatabase, createFunction, createModel, createPartition, createTable, databaseExists, dropDatabase, dropDatabase, dropFunction, dropModel, dropPartition, dropTable, functionExists, getDatabase, getFactory, getFunction, getFunctionDefinitionFactory, getModel, getPartition, getPartitionColumnStatistics, getPartitionStatistics, getProcedure, getTable, getTable, getTableColumnStatistics, getTableFactory, getTableStatistics, listDatabases, listFunctions, listModels, listPartitions, listPartitions, listPartitionsByFilter, listProcedures, listTables, listViews, modelExists, open, partitionExists, renameModel, renameTable, supportsManagedTable, tableExists
-
-
-
-
Method Detail
-
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 interfaceCatalog
- Returns:
- the name of the current database
-
-