public class CassandraEmbeddedKeyColumnValueStore extends Object implements KeyColumnValueStore
NO_ADDITIONS, NO_DELETIONS| Constructor and Description |
|---|
CassandraEmbeddedKeyColumnValueStore(String keyspace,
String columnFamily,
CassandraEmbeddedStoreManager storeManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh) |
void |
close() |
KeyIterator |
getKeys(KeyRangeQuery keyRangeQuery,
StoreTransaction txh) |
KeyIterator |
getKeys(SliceQuery query,
StoreTransaction txh) |
String |
getName() |
EntryList |
getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
void |
mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
void |
mutateMany(Map<StaticBuffer,KCVMutation> mutations,
StoreTransaction txh) |
public CassandraEmbeddedKeyColumnValueStore(String keyspace, String columnFamily, CassandraEmbeddedStoreManager storeManager) throws RuntimeException
RuntimeExceptionpublic void close()
throws BackendException
close in interface KeyColumnValueStoreBackendExceptionpublic void acquireLock(StaticBuffer key, StaticBuffer column, StaticBuffer expectedValue, StoreTransaction txh) throws BackendException
acquireLock in interface KeyColumnValueStoreBackendExceptionpublic KeyIterator getKeys(KeyRangeQuery keyRangeQuery, StoreTransaction txh) throws BackendException
getKeys in interface KeyColumnValueStoreBackendExceptionpublic KeyIterator getKeys(SliceQuery query, StoreTransaction txh) throws BackendException
getKeys in interface KeyColumnValueStoreBackendExceptionpublic String getName()
getName in interface KeyColumnValueStorepublic EntryList getSlice(KeySliceQuery query, StoreTransaction txh) throws BackendException
getSlice in interface KeyColumnValueStoreBackendExceptionpublic Map<StaticBuffer,EntryList> getSlice(List<StaticBuffer> keys, SliceQuery query, StoreTransaction txh) throws BackendException
getSlice in interface KeyColumnValueStoreBackendExceptionpublic void mutate(StaticBuffer key, List<Entry> additions, List<StaticBuffer> deletions, StoreTransaction txh) throws BackendException
mutate in interface KeyColumnValueStoreBackendExceptionpublic void mutateMany(Map<StaticBuffer,KCVMutation> mutations, StoreTransaction txh) throws BackendException
BackendExceptionCopyright © 2012–2016. All rights reserved.