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,
SliceQuery slice,
StoreFeatures features,
int keyLength,
StoreTransaction txh) |
static KeyIterator |
getKeys(KeyColumnValueStore store,
StoreFeatures features,
int keyLength,
int sliceLength,
StoreTransaction txh) |
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 BackendException
store
- Storekey
- Keycolumn
- Columntxh
- TransactionBackendException
public static KeyIterator getKeys(KeyColumnValueStore store, StoreFeatures features, int keyLength, int sliceLength, StoreTransaction txh) throws BackendException
BackendException
public static KeyIterator getKeys(KeyColumnValueStore store, SliceQuery slice, StoreFeatures features, int keyLength, StoreTransaction txh) throws BackendException
BackendException
public static boolean containsKeyColumn(KeyColumnValueStore store, StaticBuffer key, StaticBuffer column, StoreTransaction txh) throws BackendException
store
- Storekey
- Keycolumn
- Columntxh
- TransactionBackendException
public static boolean containsKey(KeyColumnValueStore store, StaticBuffer key, StoreTransaction txh) throws BackendException
BackendException
public static boolean containsKey(KeyColumnValueStore store, StaticBuffer key, int maxColumnLength, StoreTransaction txh) throws BackendException
BackendException
public 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–2023. All rights reserved.