V
- value typepublic interface Store<V> extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
delete(String key)
Removes the value corresponding to the given key if exists, nothing happens otherwise.
|
PersistentStoreMode |
getMode()
Returns storage
mode of this store. |
Iterator<Map.Entry<String,V>> |
getRange(int skip,
int take)
Returns an iterator of desired number of entries offsetting by the skip value.
|
boolean |
putIfAbsent(String key,
V value)
Stores the (key, value) tuple in the store only if it does not exists.
|
close
PersistentStoreMode getMode()
mode
of this store.void delete(String key)
key
- lookup keyboolean putIfAbsent(String key, V value)
key
- lookup keyvalue
- value to storeCopyright © 1970 The Apache Software Foundation. All rights reserved.