@Internal public class GenericInMemoryCatalogStore extends AbstractCatalogStore
isOpen
Constructor and Description |
---|
GenericInMemoryCatalogStore() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(String catalogName)
Return whether the catalog exists in the catalog store.
|
Optional<CatalogDescriptor> |
getCatalog(String catalogName)
Get a catalog by name.
|
Set<String> |
listCatalogs()
Retrieves the names of all registered catalogs.
|
void |
removeCatalog(String catalogName,
boolean ignoreIfNotExists)
Remove a catalog with the given catalog name.
|
void |
storeCatalog(String catalogName,
CatalogDescriptor catalog)
Stores a catalog under the given catalog name.
|
checkOpenState, close, open
public void storeCatalog(String catalogName, CatalogDescriptor catalog) throws CatalogException
CatalogStore
catalogName
- the given catalog name under which to store the given catalogcatalog
- catalog descriptor to storeCatalogException
- throw when registration failedpublic void removeCatalog(String catalogName, boolean ignoreIfNotExists) throws CatalogException
CatalogStore
catalogName
- the given catalog name under which to remove the given catalogignoreIfNotExists
- whether throw an exception when the catalog does not existCatalogException
- throw when the removal operation failedpublic Optional<CatalogDescriptor> getCatalog(String catalogName)
CatalogStore
catalogName
- name of the catalog to retrievepublic Set<String> listCatalogs()
CatalogStore
public boolean contains(String catalogName)
CatalogStore
catalogName
- the name of catalogCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.