public class ExpectedValueCheckingStoreManager extends Object implements KeyColumnValueStoreManager
| Constructor and Description |
|---|
ExpectedValueCheckingStoreManager(KeyColumnValueStoreManager storeManager,
String lockStoreSuffix,
LockerProvider lockerProvider,
Duration maxReadTime) |
| Modifier and Type | Method and Description |
|---|---|
StoreTransaction |
beginTransaction(BaseTransactionConfig configuration)
Returns a transaction handle for a new transaction according to the given configuration.
|
void |
clearStorage()
Deletes and clears all database in this storage manager.
|
void |
close()
Closes the Storage Manager and all databases that have been opened.
|
StoreFeatures |
getFeatures()
Returns the features supported by this storage manager
|
List<KeyRange> |
getLocalKeyPartition()
Returns
KeyRanges locally hosted on this machine. |
String |
getName()
Return an identifier for the StoreManager.
|
void |
mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations,
StoreTransaction txh)
Executes multiple mutations at once.
|
KeyColumnValueStore |
openDatabase(String name)
Opens an ordered database by the given name.
|
public ExpectedValueCheckingStoreManager(KeyColumnValueStoreManager storeManager, String lockStoreSuffix, LockerProvider lockerProvider, Duration maxReadTime)
public KeyColumnValueStore openDatabase(String name) throws StorageException
KeyColumnValueStoreManageropenDatabase in interface KeyColumnValueStoreManagername - Name of databaseStorageExceptionpublic void mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations, StoreTransaction txh) throws StorageException
KeyColumnValueStoreManagerStoreManager.getFeatures() if it is supported by a particular implementation.mutateMany in interface KeyColumnValueStoreManagerStorageExceptionpublic StoreTransaction beginTransaction(BaseTransactionConfig configuration) throws StorageException
StoreManagerbeginTransaction in interface StoreManagerStorageExceptionpublic void close()
throws StorageException
StoreManagerclose in interface StoreManagerStorageExceptionpublic void clearStorage()
throws StorageException
StoreManagerclearStorage in interface StoreManagerStorageExceptionpublic List<KeyRange> getLocalKeyPartition() throws StorageException
StoreManagerKeyRanges locally hosted on this machine. The start of
each KeyRange is inclusive. The end is exclusive. The start and
end must each be at least 4 bytes in length.getLocalKeyPartition in interface StoreManagerStorageExceptionpublic StoreFeatures getFeatures()
StoreManagergetFeatures in interface StoreManagerStoreFeaturespublic String getName()
StoreManagergetName in interface StoreManagerCopyright © 2012–2014. All rights reserved.