Class InMemoryStorageEngineFactory
java.lang.Object
com.linkedin.davinci.store.StorageEngineFactory
com.linkedin.davinci.store.memory.InMemoryStorageEngineFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the storage configurationvoidcloseStorageEngine(StorageEngine engine) Close the storage engine from the underlying storage configurationRetrieve all the stores persisted previouslyReturn the persistence type current factory supports.getStorageEngine(VeniceStoreVersionConfig storeConfig) Get an initialized storage implementationvoidremoveStorageEngine(StorageEngine engine) Remove the storage engine from the underlying storage configurationvoidremoveStorageEngine(String storeName) Remove the storage engine without opening it.voidremoveStorageEnginePartition(String storeName, int partition) Methods inherited from class com.linkedin.davinci.store.StorageEngineFactory
getStorageEngine, verifyPersistenceType, verifyPersistenceType
-
Constructor Details
-
InMemoryStorageEngineFactory
-
-
Method Details
-
getStorageEngine
public StorageEngine getStorageEngine(VeniceStoreVersionConfig storeConfig) throws StorageInitializationException Description copied from class:StorageEngineFactoryGet an initialized storage implementation- Specified by:
getStorageEnginein classStorageEngineFactory- Parameters:
storeConfig- store definition- Returns:
- The storage engine
- Throws:
StorageInitializationException
-
getPersistedStoreNames
Description copied from class:StorageEngineFactoryRetrieve all the stores persisted previously- Specified by:
getPersistedStoreNamesin classStorageEngineFactory- Returns:
- All the store names
-
close
public void close()Description copied from class:StorageEngineFactoryClose the storage configuration- Specified by:
closein classStorageEngineFactory
-
removeStorageEngine
Description copied from class:StorageEngineFactoryRemove the storage engine from the underlying storage configuration- Specified by:
removeStorageEnginein classStorageEngineFactory- Parameters:
engine- Specifies the storage engine to be removed
-
removeStorageEngine
Description copied from class:StorageEngineFactoryRemove the storage engine without opening it.- Specified by:
removeStorageEnginein classStorageEngineFactory
-
removeStorageEnginePartition
- Specified by:
removeStorageEnginePartitionin classStorageEngineFactory
-
closeStorageEngine
Description copied from class:StorageEngineFactoryClose the storage engine from the underlying storage configuration- Specified by:
closeStorageEnginein classStorageEngineFactory- Parameters:
engine- Specifies the storage engine to be removed
-
getPersistenceType
Description copied from class:StorageEngineFactoryReturn the persistence type current factory supports.- Specified by:
getPersistenceTypein classStorageEngineFactory- Returns:
-