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(StaticBuffer keyStart,
StaticBuffer keyEnd,
KeySelector selector,
StoreTransaction txh)
Returns a list of all Key-value pairs (
KeyValueEntry where the key lies between keyStart (inclusive) and keyEnd (exclusive)
and such that they match the specified KeySelector. |
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 StorageException
key - value - txh - StorageExceptionRecordIterator<KeyValueEntry> getSlice(StaticBuffer keyStart, StaticBuffer keyEnd, KeySelector selector, StoreTransaction txh) throws StorageException
KeyValueEntry where the key lies between keyStart (inclusive) and keyEnd (exclusive)
and such that they match the specified KeySelector. If the KeySelector reaches its limit before the specified range is
exhausted, only the matching entries up to that point are returned.
The operation is executed inside the context of the given transaction.keyStart - keyEnd - selector - txh - StorageExceptionCopyright © 2012–2014. All rights reserved.