Class InMemoryStorageEngineFactory
java.lang.Object
com.linkedin.davinci.store.StorageEngineFactory
com.linkedin.davinci.store.memory.InMemoryStorageEngineFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the storage configurationvoid
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 implementationvoid
Remove the storage engine from the underlying storage configurationvoid
removeStorageEngine
(String storeName) Remove the storage engine without opening it.void
removeStorageEnginePartition
(String storeName, int partition) Methods inherited from class com.linkedin.davinci.store.StorageEngineFactory
getStorageEngine, verifyPersistenceType, verifyPersistenceType
-
Constructor Details
-
InMemoryStorageEngineFactory
-
-
Method Details
-
getStorageEngine
public AbstractStorageEngine getStorageEngine(VeniceStoreVersionConfig storeConfig) throws StorageInitializationException Description copied from class:StorageEngineFactory
Get an initialized storage implementation- Specified by:
getStorageEngine
in classStorageEngineFactory
- Parameters:
storeConfig
- store definition- Returns:
- The storage engine
- Throws:
StorageInitializationException
-
getPersistedStoreNames
Description copied from class:StorageEngineFactory
Retrieve all the stores persisted previously- Specified by:
getPersistedStoreNames
in classStorageEngineFactory
- Returns:
- All the store names
-
close
public void close()Description copied from class:StorageEngineFactory
Close the storage configuration- Specified by:
close
in classStorageEngineFactory
-
removeStorageEngine
Description copied from class:StorageEngineFactory
Remove the storage engine from the underlying storage configuration- Specified by:
removeStorageEngine
in classStorageEngineFactory
- Parameters:
engine
- Specifies the storage engine to be removed
-
removeStorageEngine
Description copied from class:StorageEngineFactory
Remove the storage engine without opening it.- Specified by:
removeStorageEngine
in classStorageEngineFactory
-
removeStorageEnginePartition
- Specified by:
removeStorageEnginePartition
in classStorageEngineFactory
-
closeStorageEngine
Description copied from class:StorageEngineFactory
Close the storage engine from the underlying storage configuration- Specified by:
closeStorageEngine
in classStorageEngineFactory
- Parameters:
engine
- Specifies the storage engine to be removed
-
getPersistenceType
Description copied from class:StorageEngineFactory
Return the persistence type current factory supports.- Specified by:
getPersistenceType
in classStorageEngineFactory
- Returns:
-