public class HadoopLazyConcurrentMap<K,V extends Closeable> extends Object
HadoopLazyConcurrentMap.ValueFactory.
Despite of the name, does not depend on any Hadoop classes.| Modifier and Type | Class and Description |
|---|---|
static interface |
HadoopLazyConcurrentMap.ValueFactory<K,V>
Interface representing the factory that creates map values.
|
| Constructor and Description |
|---|
HadoopLazyConcurrentMap(HadoopLazyConcurrentMap.ValueFactory<K,V> factory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Clears the map and closes all the values.
|
V |
getOrCreate(K k)
Gets cached or creates a new value of V.
|
public HadoopLazyConcurrentMap(HadoopLazyConcurrentMap.ValueFactory<K,V> factory)
factory - the factory to create new values lazily.public V getOrCreate(K k)
k - the key to associate the value with.IgniteException - on errorpublic void close()
throws IgniteCheckedException
IgniteCheckedException
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.1-p166 Release Date : September 3 2019