public interface OrderedKeyValueStore extends KeyValueStore
KeyValueStore where the keys are ordered such that keys can be retrieved in order.| Modifier and Type | Method and Description |
|---|---|
RecordIterator<KeyValueEntry> |
getSlice(KVQuery query,
StoreTransaction txh)
Returns a list of all Key-value pairs (
KeyValueEntry where the keys satisfy the given KVQuery. |
Map<KVQuery,RecordIterator<KeyValueEntry>> |
getSlices(List<KVQuery> queries,
StoreTransaction txh)
Like
getSlice(KVQuery, com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction) but executes
all of the given queries at once and returns a map of all the result sets of each query. |
void |
insert(StaticBuffer key,
StaticBuffer value,
StoreTransaction txh)
Inserts the given key-value pair into the store.
|
acquireLock, close, containsKey, delete, get, getNamevoid insert(StaticBuffer key, StaticBuffer value, StoreTransaction txh) throws BackendException
key - value - txh - BackendExceptionRecordIterator<KeyValueEntry> getSlice(KVQuery query, StoreTransaction txh) throws BackendException
KeyValueEntry where the keys satisfy the given KVQuery.
That means, the key lies between the query's start and end buffers, satisfied the filter condition (if any) and the position
of the result in the result list iterator is less than the given limit.
The operation is executed inside the context of the given transaction.query - txh - BackendExceptionMap<KVQuery,RecordIterator<KeyValueEntry>> getSlices(List<KVQuery> queries, StoreTransaction txh) throws BackendException
getSlice(KVQuery, com.thinkaurelius.titan.diskstorage.keycolumnvalue.StoreTransaction) but executes
all of the given queries at once and returns a map of all the result sets of each query.
Only supported when the given store implementation supports multi-query, i.e.
StoreFeatures.hasMultiQuery() return true. Otherwise
this method may throw a UnsupportedOperationException.queries - txh - BackendExceptionCopyright © 2012–2015. All rights reserved.