Package io.trino.connector
Class CatalogStoreManager
java.lang.Object
io.trino.connector.CatalogStoreManager
- All Implemented Interfaces:
CatalogStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.spi.catalog.CatalogStore
CatalogStore.StoredCatalog -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCatalogStoreFactory(CatalogStoreFactory catalogStoreFactory) voidaddOrReplaceCatalog(CatalogProperties catalogProperties) createCatalogProperties(CatalogName catalogName, ConnectorName connectorName, Map<String, String> properties) voidvoidremoveCatalog(CatalogName catalogName) protected voidsetConfiguredCatalogStore(CatalogStore catalogStore) protected voidsetConfiguredCatalogStore(String name, Map<String, String> properties)
-
Constructor Details
-
CatalogStoreManager
public CatalogStoreManager()
-
-
Method Details
-
addCatalogStoreFactory
-
loadConfiguredCatalogStore
- Throws:
IOException
-
setConfiguredCatalogStore
-
setConfiguredCatalogStore
-
getCatalogs
- Specified by:
getCatalogsin interfaceCatalogStore
-
createCatalogProperties
public CatalogProperties createCatalogProperties(CatalogName catalogName, ConnectorName connectorName, Map<String, String> properties) - Specified by:
createCatalogPropertiesin interfaceCatalogStore
-
addOrReplaceCatalog
- Specified by:
addOrReplaceCatalogin interfaceCatalogStore
-
removeCatalog
- Specified by:
removeCatalogin interfaceCatalogStore
-