public class CassandraThriftKeyColumnValueStore extends Object implements KeyColumnValueStore
KeyColumnValueStore backed by Cassandra.
This uses the Cassandra Thrift API.CassandraThriftStoreManager| Modifier and Type | Class and Description |
|---|---|
class |
CassandraThriftKeyColumnValueStore.AbstractBufferedRowIter<T extends org.apache.cassandra.dht.Token<?>>
Slices rows and columns using tokens.
|
NO_ADDITIONS, NO_DELETIONS| Constructor and Description |
|---|
CassandraThriftKeyColumnValueStore(String keyspace,
String columnFamily,
CassandraThriftStoreManager storeManager,
CTConnectionPool pool) |
| 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 sliceQuery,
StoreTransaction txh) |
String |
getName() |
Map<StaticBuffer,EntryList> |
getNamesSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
getNamesSlice(StaticBuffer key,
SliceQuery query,
StoreTransaction txh) |
EntryList |
getSlice(KeySliceQuery query,
StoreTransaction txh)
Call Cassandra's Thrift get_slice() method.
|
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) |
String |
toString() |
public CassandraThriftKeyColumnValueStore(String keyspace, String columnFamily, CassandraThriftStoreManager storeManager, CTConnectionPool pool)
public EntryList getSlice(KeySliceQuery query, StoreTransaction txh) throws BackendException
getSlice in interface KeyColumnValueStoreBackendException - when columnEnd < columnStartpublic Map<StaticBuffer,EntryList> getSlice(List<StaticBuffer> keys, SliceQuery query, StoreTransaction txh) throws BackendException
getSlice in interface KeyColumnValueStoreBackendExceptionpublic Map<StaticBuffer,EntryList> getNamesSlice(StaticBuffer key, SliceQuery query, StoreTransaction txh) throws BackendException
BackendExceptionpublic Map<StaticBuffer,EntryList> getNamesSlice(List<StaticBuffer> keys, SliceQuery query, StoreTransaction txh) throws BackendException
BackendExceptionpublic void close()
close in interface KeyColumnValueStorepublic void acquireLock(StaticBuffer key, StaticBuffer column, StaticBuffer expectedValue, StoreTransaction txh) throws BackendException
acquireLock in interface KeyColumnValueStoreBackendExceptionpublic KeyIterator getKeys(@Nullable SliceQuery sliceQuery, StoreTransaction txh) throws BackendException
getKeys in interface KeyColumnValueStoreBackendExceptionpublic KeyIterator getKeys(KeyRangeQuery keyRangeQuery, StoreTransaction txh) throws BackendException
getKeys in interface KeyColumnValueStoreBackendExceptionpublic String getName()
getName in interface KeyColumnValueStorepublic 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.