public abstract class BasePersistentStore<V> extends Object implements PersistentStore<V>
| Constructor and Description |
|---|
BasePersistentStore() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String key,
DataChangeVersion version)
By default contains with version will behave the same way as without version.
|
V |
get(String key,
DataChangeVersion version)
By default get with version will behave the same way as without version.
|
Iterator<Map.Entry<String,V>> |
getAll()
Returns an iterator of entries.
|
void |
put(String key,
V value,
DataChangeVersion version)
By default put with version will behave the same way as without version.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, delete, get, getMode, getRange, put, putIfAbsentclosepublic Iterator<Map.Entry<String,V>> getAll()
PersistentStoregetAll in interface PersistentStore<V>public boolean contains(String key, DataChangeVersion version)
contains in interface PersistentStore<V>key - lookup keyversion - version holderpublic V get(String key, DataChangeVersion version)
get in interface PersistentStore<V>key - lookup keyversion - version holderpublic void put(String key, V value, DataChangeVersion version)
put in interface PersistentStore<V>key - lookup keyvalue - value to storeversion - version holderCopyright © 2017 The Apache Software Foundation. All rights reserved.