@Internal public interface CatalogManager
Catalog
s. Used inside the root BeamCalciteSchema
.
Implementations should have a way of determining which catalog is currently active, and
produce it when currentCatalog()
is invoked.
When registerTableProvider(String, TableProvider)
is called, the provider should
become available for all catalogs.
Modifier and Type | Method and Description |
---|---|
void |
createCatalog(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.
|
Catalog |
currentCatalog()
Produces the currently active catalog.
|
void |
dropCatalog(java.lang.String name)
Drops the catalog with this name.
|
@Nullable Catalog |
getCatalog(java.lang.String name)
Attempts to fetch the catalog with this name.
|
void |
registerTableProvider(java.lang.String name,
TableProvider tableProvider)
Registers a
TableProvider and propagates it to all the Catalog instances
available to this manager. |
default void |
registerTableProvider(TableProvider tp) |
void |
useCatalog(java.lang.String name)
Switches the active catalog.
|
void createCatalog(java.lang.String name, java.lang.String type, java.util.Map<java.lang.String,java.lang.String> properties)
void useCatalog(java.lang.String name)
Catalog currentCatalog()
@Nullable Catalog getCatalog(java.lang.String name)
void dropCatalog(java.lang.String name)
void registerTableProvider(java.lang.String name, TableProvider tableProvider)
TableProvider
and propagates it to all the Catalog
instances
available to this manager.default void registerTableProvider(TableProvider tp)