public class CQLKeyColumnValueStore extends Object implements KeyColumnValueStore
KeyColumnValueStore which stores the data in a CQL connected backend.| Modifier and Type | Field and Description |
|---|---|
static String |
COLUMN_BINDING |
static String |
COLUMN_COLUMN_NAME |
static Function<? super Throwable,BackendException> |
EXCEPTION_MAPPER |
static String |
KEY_BINDING |
static String |
KEY_COLUMN_NAME |
static String |
KEY_END_BINDING |
static String |
KEY_START_BINDING |
static String |
LIMIT_BINDING |
static String |
SLICE_END_BINDING |
static String |
SLICE_START_BINDING |
static String |
TIMESTAMP_BINDING |
static String |
TTL_BINDING |
static String |
TTL_COLUMN_NAME |
static String |
TTL_FUNCTION_NAME |
static String |
VALUE_BINDING |
static String |
VALUE_COLUMN_NAME |
static String |
WRITETIME_COLUMN_NAME |
static String |
WRITETIME_FUNCTION_NAME |
NO_ADDITIONS, NO_DELETIONS| Constructor and Description |
|---|
CQLKeyColumnValueStore(CQLStoreManager storeManager,
String tableName,
Configuration configuration,
Runnable closer)
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() |
com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> |
deleteColumn(StaticBuffer key,
StaticBuffer column) |
com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> |
deleteColumn(StaticBuffer key,
StaticBuffer column,
Long timestamp) |
KeyIterator |
getKeys(KeyRangeQuery query,
StoreTransaction txh) |
KeySlicesIterator |
getKeys(MultiSlicesQuery queries,
StoreTransaction txh) |
KeyIterator |
getKeys(SliceQuery query,
StoreTransaction txh) |
Map<SliceQuery,Map<StaticBuffer,EntryList>> |
getMultiSlices(MultiKeysQueryGroups<StaticBuffer,SliceQuery> multiSliceQueriesForKeys,
StoreTransaction txh) |
String |
getName() |
EntryList |
getSlice(KeySliceQuery query,
StoreTransaction txh) |
Map<StaticBuffer,EntryList> |
getSlice(List<StaticBuffer> keys,
SliceQuery query,
StoreTransaction txh) |
com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> |
insertColumn(StaticBuffer key,
Entry entry) |
com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> |
insertColumn(StaticBuffer key,
Entry entry,
Long timestamp) |
void |
mutate(StaticBuffer key,
List<Entry> additions,
List<StaticBuffer> deletions,
StoreTransaction txh) |
public static final String TTL_FUNCTION_NAME
public static final String WRITETIME_FUNCTION_NAME
public static final String KEY_COLUMN_NAME
public static final String COLUMN_COLUMN_NAME
public static final String VALUE_COLUMN_NAME
public static final String WRITETIME_COLUMN_NAME
public static final String TTL_COLUMN_NAME
public static final String KEY_BINDING
public static final String COLUMN_BINDING
public static final String VALUE_BINDING
public static final String TIMESTAMP_BINDING
public static final String TTL_BINDING
public static final String SLICE_START_BINDING
public static final String SLICE_END_BINDING
public static final String KEY_START_BINDING
public static final String KEY_END_BINDING
public static final String LIMIT_BINDING
public static final Function<? super Throwable,BackendException> EXCEPTION_MAPPER
public CQLKeyColumnValueStore(CQLStoreManager storeManager, String tableName, Configuration configuration, Runnable closer)
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 managerpublic 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 Map<SliceQuery,Map<StaticBuffer,EntryList>> getMultiSlices(MultiKeysQueryGroups<StaticBuffer,SliceQuery> multiSliceQueriesForKeys, StoreTransaction txh) throws BackendException
getMultiSlices in interface KeyColumnValueStoreBackendExceptionpublic com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> deleteColumn(StaticBuffer key, StaticBuffer column)
public com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> deleteColumn(StaticBuffer key, StaticBuffer column, Long timestamp)
public com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> insertColumn(StaticBuffer key, Entry entry)
public com.datastax.oss.driver.api.core.cql.BatchableStatement<com.datastax.oss.driver.api.core.cql.BoundStatement> insertColumn(StaticBuffer key, Entry entry, Long timestamp)
public 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 KeyColumnValueStoreBackendExceptionpublic KeySlicesIterator getKeys(MultiSlicesQuery queries, StoreTransaction txh) throws BackendException
getKeys in interface KeyColumnValueStoreBackendExceptionCopyright © 2012–2024. All rights reserved.