public class TTLKCVSManager extends KCVSManagerProxy
manager| Constructor and Description |
|---|
TTLKCVSManager(KeyColumnValueStoreManager manager) |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyTTL(Collection<Entry> additions,
int ttl) |
StoreFeatures |
getFeatures()
Returns the features supported by this storage manager
|
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.
|
KeyColumnValueStore |
openDatabase(String name,
StoreMetaData.Container metaData)
Opens an ordered database by the given name.
|
static boolean |
supportsAnyTTL(StoreFeatures features)
Returns true if the parameter supports at least one of the following:
cell-level TTL
StoreFeatures.hasCellTTL()
store-level TTL StoreFeatures.hasStoreTTL()
|
beginTransaction, clearStorage, close, getLocalKeyPartition, getNamepublic TTLKCVSManager(KeyColumnValueStoreManager manager)
public static boolean supportsAnyTTL(StoreFeatures features)
StoreFeatures.hasCellTTL()StoreFeatures.hasStoreTTL()features - an arbitrary StoreFeatures instancepublic StoreFeatures getFeatures()
StoreManagergetFeatures in interface StoreManagergetFeatures in class KCVSManagerProxyStoreFeaturespublic KeyColumnValueStore openDatabase(String name) throws BackendException
KeyColumnValueStoreManagername - Name of databaseBackendExceptionpublic KeyColumnValueStore openDatabase(String name, StoreMetaData.Container metaData) throws BackendException
KeyColumnValueStoreManageropenDatabase in interface KeyColumnValueStoreManageropenDatabase in class KCVSManagerProxyname - Name of databasemetaData - options specific to this storeBackendExceptionpublic void mutateMany(Map<String,Map<StaticBuffer,KCVMutation>> mutations, StoreTransaction txh) throws BackendException
KeyColumnValueStoreManagerStoreManager.getFeatures() if it is supported by a particular implementation.mutateMany in interface KeyColumnValueStoreManagermutateMany in class KCVSManagerProxyBackendExceptionpublic static void applyTTL(Collection<Entry> additions, int ttl)
Copyright © 2012–2015. All rights reserved.