Package org.apache.flink.table.catalog
Class CatalogDatabaseImpl
- java.lang.Object
-
- org.apache.flink.table.catalog.CatalogDatabaseImpl
-
- All Implemented Interfaces:
org.apache.flink.table.catalog.CatalogDatabase
@Internal public class CatalogDatabaseImpl extends Object implements org.apache.flink.table.catalog.CatalogDatabase
A implementation ofCatalogDatabase
.
-
-
Constructor Summary
Constructors Constructor Description CatalogDatabaseImpl(Map<String,String> properties, String comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.flink.table.catalog.CatalogDatabase
copy()
Get a deep copy of the CatalogDatabase instance.org.apache.flink.table.catalog.CatalogDatabase
copy(Map<String,String> properties)
String
getComment()
Get comment of the database.Optional<String>
getDescription()
Get a brief description of the database.Optional<String>
getDetailedDescription()
Get a detailed description of the database.Map<String,String>
getProperties()
Get a map of properties associated with the database.
-
-
-
Method Detail
-
getProperties
public Map<String,String> getProperties()
Get a map of properties associated with the database.- Specified by:
getProperties
in interfaceorg.apache.flink.table.catalog.CatalogDatabase
-
getComment
public String getComment()
Get comment of the database.- Specified by:
getComment
in interfaceorg.apache.flink.table.catalog.CatalogDatabase
- Returns:
- comment of the database
-
copy
public org.apache.flink.table.catalog.CatalogDatabase copy()
Get a deep copy of the CatalogDatabase instance.- Specified by:
copy
in interfaceorg.apache.flink.table.catalog.CatalogDatabase
- Returns:
- a copy of CatalogDatabase instance
-
copy
public org.apache.flink.table.catalog.CatalogDatabase copy(Map<String,String> properties)
- Specified by:
copy
in interfaceorg.apache.flink.table.catalog.CatalogDatabase
-
getDescription
public Optional<String> getDescription()
Get a brief description of the database.- Specified by:
getDescription
in interfaceorg.apache.flink.table.catalog.CatalogDatabase
- Returns:
- an optional short description of the database
-
-