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:
DelegatingCatalogExtension
is requested to createNamespaceCREATE NAMESPACE
command is executed
List Namespaces¶
String[][] listNamespaces()
Lists the top-level namespaces from this catalog
Used when:
DelegatingCatalogExtension
is requested to listNamespacesSHOW NAMESPACES
command is executed
Load Namespace Metadata¶
Map<String, String> loadNamespaceMetadata(
String[] namespace)
Loads metadata properties for the namespace
Used when:
DelegatingCatalogExtension
is requested to loadNamespaceMetadataSupportsNamespaces
is requested to namespaceExistsDESCRIBE NAMESPACE
command is executedCatalogImpl
is 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:
CatalogManager
is requested to setCurrentNamespaceCatalogImpl
is requested to databaseExistsDelegatingCatalogExtension
is requested to namespaceExistsCREATE NAMESPACE
command is executedDROP NAMESPACE
command is executed