public class InMemoryStoreManager extends Object implements KeyColumnValueStoreManager
| Constructor and Description |
|---|
InMemoryStoreManager() |
InMemoryStoreManager(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
beginTransaction(BaseTransactionConfig config) |
void |
clearStorage() |
void |
close() |
boolean |
exists() |
StoreFeatures |
getFeatures() |
List<KeyRange> |
getLocalKeyPartition() |
String |
getName() |
void |
makeSnapshot(File targetSnapshotDirectory,
ForkJoinPool parallelOperationsExecutor) |
void |
mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh) |
KeyColumnValueStore |
openDatabase(String name,
StoreMetaData.Container metaData) |
void |
restoreFromSnapshot(File sourceSnapshotDirectory,
boolean rollbackIfFailed,
ForkJoinPool parallelOperationsExecutor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenDatabasegetHadoopManagerpublic InMemoryStoreManager()
public InMemoryStoreManager(Configuration configuration)
public StoreTransaction beginTransaction(BaseTransactionConfig config) throws BackendException
beginTransaction in interface StoreManagerBackendExceptionpublic void close()
throws BackendException
close in interface StoreManagerBackendExceptionpublic void clearStorage()
throws BackendException
clearStorage in interface StoreManagerBackendExceptionpublic boolean exists()
throws BackendException
exists in interface StoreManagerBackendExceptionpublic StoreFeatures getFeatures()
getFeatures in interface StoreManagerpublic KeyColumnValueStore openDatabase(String name, StoreMetaData.Container metaData) throws BackendException
openDatabase in interface KeyColumnValueStoreManagerBackendExceptionpublic void mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations, StoreTransaction txh) throws BackendException
mutateMany in interface KeyColumnValueStoreManagerBackendExceptionpublic List<KeyRange> getLocalKeyPartition() throws BackendException
getLocalKeyPartition in interface StoreManagerBackendExceptionpublic String getName()
getName in interface StoreManagerpublic void makeSnapshot(File targetSnapshotDirectory, ForkJoinPool parallelOperationsExecutor) throws IOException
IOExceptionpublic void restoreFromSnapshot(File sourceSnapshotDirectory, boolean rollbackIfFailed, ForkJoinPool parallelOperationsExecutor) throws IOException, BackendException
IOExceptionBackendExceptionCopyright © 2012–2024. All rights reserved.