@PublicEvolving
public interface CatalogStore
Catalogs.
All catalogs can be lazy initialized with the CatalogStore.
It can be used in CatalogManager to retrieve, save and remove catalog in CatalogDescriptor format at the external storage system.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the catalog store when it is no longer needed and release any resource that it might be
holding.
|
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 |
open()
Open the catalog store.
|
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.
|
void storeCatalog(String catalogName, CatalogDescriptor catalog) throws CatalogException
catalogName - the given catalog name under which to store the given catalogcatalog - catalog descriptor to storeCatalogException - throw when registration failedvoid removeCatalog(String catalogName, boolean ignoreIfNotExists) throws CatalogException
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 failedOptional<CatalogDescriptor> getCatalog(String catalogName) throws CatalogException
catalogName - name of the catalog to retrieveCatalogException - in case of any runtime exceptionSet<String> listCatalogs() throws CatalogException
CatalogException - in case of any runtime exceptionboolean contains(String catalogName) throws CatalogException
catalogName - the name of catalogCatalogException - in case of any runtime exceptionvoid open() throws CatalogException
CatalogException - in case of any runtime exceptionvoid close()
throws CatalogException
CatalogException - in case of any runtime exceptionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.