public static class KeyValueStore.Extension
extends java.lang.Object
KeyValueStore
.Modifier and Type | Method and Description |
---|---|
static <K,V> void |
deleteAll(KeyValueStore<K,V> store,
java.util.List<K> keys)
Deletes the mappings for the specified
keys from this key-value store (if such mappings exist). |
static <K,V> java.util.Map<K,V> |
getAll(KeyValueStore<K,V> store,
java.util.List<K> keys)
Gets the values with which the specified
keys are associated. |
public static <K,V> java.util.Map<K,V> getAll(KeyValueStore<K,V> store, java.util.List<K> keys)
keys
are associated.K
- the type of keys maintained by the specified store
.V
- the type of values maintained by the specified store
.store
- the key-value store for which this operation is to be performed.keys
- the keys with which the associated values are to be fetched.java.lang.NullPointerException
- if the specified keys
list, or any of the keys, is null
.public static <K,V> void deleteAll(KeyValueStore<K,V> store, java.util.List<K> keys)
keys
from this key-value store (if such mappings exist).K
- the type of keys maintained by the specified store
.V
- the type of values maintained by the specified store
.store
- the key-value store for which this operation is to be performed.keys
- the keys for which the mappings are to be deleted.java.lang.NullPointerException
- if the specified keys
list, or any of the keys, is null
.