Package org.apache.flink.table.catalog
Class AbstractCatalog
- java.lang.Object
-
- org.apache.flink.table.catalog.AbstractCatalog
-
-
Constructor Summary
Constructors Constructor Description AbstractCatalog(String name, String defaultDatabase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDefaultDatabase()Get the name of the default database for this catalog.StringgetName()-
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, 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, getTableStatistics, listDatabases, listFunctions, listModels, listPartitions, listPartitions, listPartitionsByFilter, listProcedures, listTables, listViews, modelExists, open, partitionExists, renameModel, renameTable, tableExists
-
-
-
-
Method Detail
-
getName
public String getName()
-
getDefaultDatabase
public String getDefaultDatabase()
Description copied from interface:CatalogGet 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:
getDefaultDatabasein interfaceCatalog- Returns:
- the name of the current database
-
-