public class GridNoStorageCacheMap<K,V> extends GridCacheConcurrentMap<K,V>
ctx, NON_INTERNAL_ARR| Constructor and Description |
|---|
GridNoStorageCacheMap(GridCacheContext<K,V> ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
GridCacheMapEntry<K,V> |
getEntry(Object key)
Returns the entry associated with the specified key in the
HashMap.
|
boolean |
isEmpty() |
int |
publicSize() |
void |
putAll(Map<? extends K,? extends V> m,
long ttl)
Copies all of the mappings from the specified map to this map
These mappings will replace any mappings that
this map had for any of the keys currently in the specified map.
|
GridCacheMapEntry<K,V> |
putEntry(long topVer,
K key,
V val,
long ttl) |
GridTriple<GridCacheMapEntry<K,V>> |
putEntryIfObsoleteOrAbsent(long topVer,
K key,
V val,
long ttl,
boolean create) |
GridCacheMapEntry<K,V> |
randomEntry() |
boolean |
removeEntry(GridCacheEntryEx<K,V> e)
Removes passed in entry if it presents in the map.
|
GridCacheMapEntry<K,V> |
removeEntryIfObsolete(K key)
Removes and returns the entry associated with the specified key
in the HashMap if entry is obsolete.
|
int |
size()
Returns the number of key-value mappings in this map.
|
String |
toString() |
allEntries0, allValues, checkConsistency, decrementSize, entries, entries0, entriesx, hash, incrementSize, keySet, setEntryFactory, stripedEntryIterator, valuespublic GridNoStorageCacheMap(GridCacheContext<K,V> ctx)
ctx - Cache context.public boolean isEmpty()
isEmpty in class GridCacheConcurrentMap<K,V>True if this map is empty.public int size()
size in class GridCacheConcurrentMap<K,V>public int publicSize()
publicSize in class GridCacheConcurrentMap<K,V>public boolean containsKey(Object key)
containsKey in class GridCacheConcurrentMap<K,V>key - Key.True if map contains mapping for provided key.public GridCacheMapEntry<K,V> randomEntry()
randomEntry in class GridCacheConcurrentMap<K,V>public GridCacheMapEntry<K,V> getEntry(Object key)
getEntry in class GridCacheConcurrentMap<K,V>key - Key.public GridCacheMapEntry<K,V> putEntry(long topVer, K key, @Nullable V val, long ttl)
putEntry in class GridCacheConcurrentMap<K,V>topVer - Topology version.key - Key.val - Value.ttl - Time to live.public GridTriple<GridCacheMapEntry<K,V>> putEntryIfObsoleteOrAbsent(long topVer, K key, @Nullable V val, long ttl, boolean create)
putEntryIfObsoleteOrAbsent in class GridCacheConcurrentMap<K,V>topVer - Topology version.key - Key.val - Value.ttl - Time to live.create - Create flag.public void putAll(Map<? extends K,? extends V> m, long ttl)
putAll in class GridCacheConcurrentMap<K,V>m - mappings to be stored in this map.ttl - Time to live.public boolean removeEntry(GridCacheEntryEx<K,V> e)
removeEntry in class GridCacheConcurrentMap<K,V>e - Entry to remove.True if remove happened.public GridCacheMapEntry<K,V> removeEntryIfObsolete(K key)
removeEntryIfObsolete in class GridCacheConcurrentMap<K,V>key - Key.null.public String toString()
toString in class GridCacheConcurrentMap<K,V>
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015