Class IcebergCatalog
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.catalog.InMemoryCatalog
org.apache.beam.sdk.extensions.sql.meta.provider.iceberg.IcebergCatalog
- All Implemented Interfaces:
Catalog
-
Field Summary
Fields inherited from class org.apache.beam.sdk.extensions.sql.meta.catalog.InMemoryCatalog
currentDatabase -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateDatabase(String database) Creates a database with this name.booleandropDatabase(String database, boolean cascade) Drops the database with this name.Returns a set of existing databases accessible to this catalog.The underlyingMetaStorethat actually manages tables.type()A type that defines this catalog.Methods inherited from class org.apache.beam.sdk.extensions.sql.meta.catalog.InMemoryCatalog
currentDatabase, name, properties, useDatabase
-
Constructor Details
-
IcebergCatalog
-
-
Method Details
-
metaStore
Description copied from interface:CatalogThe underlyingMetaStorethat actually manages tables.- Specified by:
metaStorein interfaceCatalog- Overrides:
metaStorein classInMemoryCatalog
-
type
Description copied from interface:CatalogA type that defines this catalog.- Specified by:
typein interfaceCatalog- Overrides:
typein classInMemoryCatalog
-
createDatabase
Description copied from interface:CatalogCreates a database with this name.- Specified by:
createDatabasein interfaceCatalog- Overrides:
createDatabasein classInMemoryCatalog- Parameters:
database-- Returns:
- true if the database was created, false otherwise.
-
dropDatabase
Description copied from interface:CatalogDrops the database with this name. If cascade is true, the catalog should first drop all tables contained in this database.- Specified by:
dropDatabasein interfaceCatalog- Overrides:
dropDatabasein classInMemoryCatalog- Parameters:
database-cascade-- Returns:
- true if the database was dropped, false otherwise.
-
listDatabases
Description copied from interface:CatalogReturns a set of existing databases accessible to this catalog.- Specified by:
listDatabasesin interfaceCatalog- Overrides:
listDatabasesin classInMemoryCatalog- Returns:
- a set of existing database names
-