K - The key typeV - The value type@InterfaceStability.Unstable public interface KeyValueStore<K,V> extends StateStore, ReadOnlyKeyValueStore<K,V>
| Modifier and Type | Method and Description |
|---|---|
V |
delete(K key)
Delete the value from the store (if there is one)
|
void |
put(K key,
V value)
Update the value associated with this key
|
void |
putAll(List<KeyValue<K,V>> entries)
Update all the given key/value pairs
|
V |
putIfAbsent(K key,
V value)
Update the value associated with this key, unless a value
is already associated with the key
|
close, flush, init, isOpen, name, persistentall, approximateNumEntries, get, rangevoid put(K key, V value)
key - They key to associate the value tovalue - The valueNullPointerException - If null is used for key or value.V putIfAbsent(K key, V value)
key - They key to associate the value tovalue - The valueNullPointerException - If null is used for key or value.void putAll(List<KeyValue<K,V>> entries)
entries - A list of entries to put into the store.NullPointerException - If null is used for any key or value.V delete(K key)
key - The keyNullPointerException - If null is used for key.