Package io.trino.connector
Class InMemoryCatalogStore
java.lang.Object
io.trino.connector.InMemoryCatalogStore
- All Implemented Interfaces:
CatalogStore
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.trino.connector.CatalogStore
CatalogStore.StoredCatalog -
Constructor Summary
Constructors -
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.
-
Constructor Details
-
InMemoryCatalogStore
public InMemoryCatalogStore()
-
-
Method Details
-
getCatalogs
Description copied from interface:CatalogStoreGet all catalogs- Specified by:
getCatalogsin interfaceCatalogStore
-
createCatalogProperties
public CatalogProperties createCatalogProperties(String catalogName, ConnectorName connectorName, Map<String, String> properties) Description copied from interface:CatalogStoreCreate 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.- Specified by:
createCatalogPropertiesin interfaceCatalogStore
-
addOrReplaceCatalog
Description copied from interface:CatalogStoreAdd or replace catalog properties.- Specified by:
addOrReplaceCatalogin interfaceCatalogStore
-
removeCatalog
Description copied from interface:CatalogStoreRemove a catalog if present.- Specified by:
removeCatalogin interfaceCatalogStore
-