Class EmptyCatalogManager
- java.lang.Object
-
- org.apache.beam.sdk.extensions.sql.meta.catalog.EmptyCatalogManager
-
- All Implemented Interfaces:
CatalogManager
public class EmptyCatalogManager extends java.lang.Object implements CatalogManager
-
-
Constructor Summary
Constructors Constructor Description EmptyCatalogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Catalog>catalogs()voidcreateCatalog(java.lang.String name, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> properties)Creates and stores a catalog of a particular type.CatalogcurrentCatalog()Produces the currently active catalog.voiddropCatalog(java.lang.String name)Drops the catalog with this name.@Nullable CataloggetCatalog(java.lang.String name)Attempts to fetch the catalog with this name.voidregisterTableProvider(TableProvider tableProvider)Registers aTableProviderand propagates it to all theCataloginstances available to this manager.java.util.Map<java.lang.String,TableProvider>tableProviders()Returns all theTableProviders available to thisCatalogManager, organized by type.voiduseCatalog(java.lang.String name)Switches the active catalog.
-
-
-
Method Detail
-
useCatalog
public void useCatalog(java.lang.String name)
Description copied from interface:CatalogManagerSwitches the active catalog.- Specified by:
useCatalogin interfaceCatalogManager
-
currentCatalog
public Catalog currentCatalog()
Description copied from interface:CatalogManagerProduces the currently active catalog.- Specified by:
currentCatalogin interfaceCatalogManager
-
getCatalog
public @Nullable Catalog getCatalog(java.lang.String name)
Description copied from interface:CatalogManagerAttempts to fetch the catalog with this name. May produce null if it does not exist.- Specified by:
getCatalogin interfaceCatalogManager
-
dropCatalog
public void dropCatalog(java.lang.String name)
Description copied from interface:CatalogManagerDrops the catalog with this name. No-op if the catalog already does not exist.- Specified by:
dropCatalogin interfaceCatalogManager
-
registerTableProvider
public void registerTableProvider(TableProvider tableProvider)
Description copied from interface:CatalogManagerRegisters aTableProviderand propagates it to all theCataloginstances available to this manager.- Specified by:
registerTableProviderin interfaceCatalogManager
-
tableProviders
public java.util.Map<java.lang.String,TableProvider> tableProviders()
Description copied from interface:CatalogManagerReturns all theTableProviders available to thisCatalogManager, organized by type.- Specified by:
tableProvidersin interfaceCatalogManager
-
createCatalog
public void createCatalog(java.lang.String name, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> properties)Description copied from interface:CatalogManagerCreates and stores a catalog of a particular type.- Specified by:
createCatalogin interfaceCatalogManager
-
catalogs
public java.util.Collection<Catalog> catalogs()
- Specified by:
catalogsin interfaceCatalogManager
-
-