Package io.trino.connector
Interface CatalogStore
- All Known Implementing Classes:
FileCatalogStore,InMemoryCatalogStore
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrReplaceCatalog(CatalogProperties catalogProperties) Add or replace catalog properties.createCatalogProperties(String catalogName, ConnectorName connectorName, Map<String, String> properties) Create a catalog properties from the raw properties.Get all catalogsvoidremoveCatalog(String catalogName) Remove a catalog if present.
-
Method Details
-
getCatalogs
Collection<CatalogStore.StoredCatalog> getCatalogs()Get all catalogs -
createCatalogProperties
CatalogProperties createCatalogProperties(String catalogName, ConnectorName connectorName, Map<String, String> properties) Create a catalog properties from the raw properties. This allows the store to assign the initial handle for a catalog before the catalog is created. This does not add the catalog to the store. -
addOrReplaceCatalog
Add or replace catalog properties. -
removeCatalog
Remove a catalog if present.
-