public class KCVSUtil extends Object
KeyColumnValueStore.| Constructor and Description |
|---|
KCVSUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsKey(KeyColumnValueStore store,
StaticBuffer key,
int maxColumnLength,
StoreTransaction txh) |
static boolean |
containsKey(KeyColumnValueStore store,
StaticBuffer key,
StoreTransaction txh) |
static boolean |
containsKeyColumn(KeyColumnValueStore store,
StaticBuffer key,
StaticBuffer column,
StoreTransaction txh)
Returns true if the specified key-column pair exists in the store.
|
static Map<StaticBuffer,EntryList> |
emptyResults(List<StaticBuffer> keys) |
static StaticBuffer |
get(KeyColumnValueStore store,
StaticBuffer key,
StaticBuffer column,
StoreTransaction txh)
Retrieves the value for the specified column and key under the given transaction
from the store if such exists, otherwise returns NULL
|
static KeyIterator |
getKeys(KeyColumnValueStore store,
StoreFeatures features,
int keyLength,
int sliceLength,
StoreTransaction txh)
If the store supports unordered scans, then call {#link
KeyColumnValueStore.getKeys(SliceQuery, StoreTransaction). |
static boolean |
matches(KeyRangeQuery query,
StaticBuffer key,
StaticBuffer column) |
static boolean |
matches(SliceQuery query,
StaticBuffer column) |
public static StaticBuffer get(KeyColumnValueStore store, StaticBuffer key, StaticBuffer column, StoreTransaction txh) throws StorageException
store - Storekey - Keycolumn - Columntxh - TransactionStorageExceptionpublic static KeyIterator getKeys(KeyColumnValueStore store, StoreFeatures features, int keyLength, int sliceLength, StoreTransaction txh) throws StorageException
KeyColumnValueStore.getKeys(SliceQuery, StoreTransaction). The
SliceQuery bounds are a binary all-zeros with an all-ones buffer.
The limit is 1.
If the store supports ordered scans, then call {#link
KeyColumnValueStore.getKeys(KeyRangeQuery, StoreTransaction). The
key and columns slice bounds are the same as those described above. The
column limit is 1.
store - the store to queryfeatures - the store's featureskeyLength - length of the zero/one buffers that form the key limitssliceLength - length of the zero/one buffers that form the col limitstxh - transaction to use with getKeysStorageException - unexpected failurepublic static boolean containsKeyColumn(KeyColumnValueStore store, StaticBuffer key, StaticBuffer column, StoreTransaction txh) throws StorageException
store - Storekey - Keycolumn - Columntxh - TransactionStorageExceptionpublic static boolean containsKey(KeyColumnValueStore store, StaticBuffer key, StoreTransaction txh) throws StorageException
StorageExceptionpublic static boolean containsKey(KeyColumnValueStore store, StaticBuffer key, int maxColumnLength, StoreTransaction txh) throws StorageException
StorageExceptionpublic static boolean matches(SliceQuery query, StaticBuffer column)
public static boolean matches(KeyRangeQuery query, StaticBuffer key, StaticBuffer column)
public static Map<StaticBuffer,EntryList> emptyResults(List<StaticBuffer> keys)
Copyright © 2012–2014. All rights reserved.