public interface MapLoader<K,V>
Modifier and Type | Method and Description |
---|---|
V |
load(K key)
Loads the value of a given key.
|
Map<K,V> |
loadAll(Collection<K> keys)
Loads given keys.
|
Iterable<K> |
loadAllKeys()
Loads all of the keys from the store.
|
V load(K key)
key,
- cannot be nullMap<K,V> loadAll(Collection<K> keys)
null
keys.
The returned Map should not contain any null
keys or values.keys
- keys of the values entries to loadIterable<K> loadAllKeys()
Iterable
may return the keys lazily
by loading them in batches. The Iterator
of this Iterable
may implement the
Closeable
interface in which case it will be closed once iteration is over.
This is intended for releasing resources such as closing a JDBC result set.
The returned Iterable should not contain any null
keys.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.