public class CQLKeyColumnValueStore extends Object implements KeyColumnValueStore
KeyColumnValueStore which stores the data in a CQL connected backend.NO_ADDITIONS, NO_DELETIONS| Constructor and Description |
|---|
CQLKeyColumnValueStore(CQLStoreManager storeManager,
String tableName,
Configuration configuration,
Runnable closer,
boolean allowCompactStorage,
Supplier<Boolean> shouldInitializeTable)
Creates an instance of the
KeyColumnValueStore that stores the data in a CQL backed table. |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireLock(StaticBuffer key,
StaticBuffer column,
StaticBuffer expectedValue,
StoreTransaction txh) |
void |
close() |
KeyIterator |
getKeys(KeyRangeQuery query,
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) |
public CQLKeyColumnValueStore(CQLStoreManager storeManager, String tableName, Configuration configuration, Runnable closer, boolean allowCompactStorage, Supplier<Boolean> shouldInitializeTable)
KeyColumnValueStore that stores the data in a CQL backed table.storeManager - the CQLStoreManager that maintains the list of CQLKeyColumnValueStorestableName - the name of the database table for storing the key/column/valuesconfiguration - data used in creating this storecloser - callback used to clean up references to this store in the store managerallowCompactStorage - whether to use compact storage is allowed (true only for Cassandra 2 and earlier)shouldInitializeTable - if true is provided the table gets initializedpublic void close()
throws BackendException
close 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 acquireLock(StaticBuffer key, StaticBuffer column, StaticBuffer expectedValue, StoreTransaction txh) throws BackendException
acquireLock in interface KeyColumnValueStoreBackendExceptionpublic KeyIterator getKeys(KeyRangeQuery query, StoreTransaction txh) throws BackendException
getKeys in interface KeyColumnValueStoreBackendExceptionpublic KeyIterator getKeys(SliceQuery query, StoreTransaction txh) throws BackendException
getKeys in interface KeyColumnValueStoreBackendExceptionCopyright © 2012–2020. All rights reserved.