SupportsNamespaces¶
SupportsNamespaces is an extension of the CatalogPlugin abstraction for catalogs with namespace support.
Contract (Subset)¶
Create Namespace¶
void createNamespace(
String[] namespace,
Map<String, String> metadata)
Creates a multi-part namespace in this catalog
Used when:
DelegatingCatalogExtensionis requested to createNamespaceCREATE NAMESPACEcommand is executed
List Namespaces¶
String[][] listNamespaces()
Lists the top-level namespaces from this catalog
Used when:
DelegatingCatalogExtensionis requested to listNamespacesSHOW NAMESPACEScommand is executed
Load Namespace Metadata¶
Map<String, String> loadNamespaceMetadata(
String[] namespace)
Loads metadata properties for the namespace
Used when:
DelegatingCatalogExtensionis requested to loadNamespaceMetadataSupportsNamespacesis requested to namespaceExistsDESCRIBE NAMESPACEcommand is executedCatalogImplis requested to getNamespace
Check If Namespace Exists¶
boolean namespaceExists(
String[] namespace)
By default, namespaceExists tries to load the namespace metadata in this catalog. For a successful load, namespaceExists is positive (true).
Used when:
CatalogManageris requested to setCurrentNamespaceCatalogImplis requested to databaseExistsDelegatingCatalogExtensionis requested to namespaceExistsCREATE NAMESPACEcommand is executedDROP NAMESPACEcommand is executed