public class GridNoStorageCacheMap extends GridCacheConcurrentMap
ctx, NON_INTERNAL_ARR| Constructor and Description |
|---|
GridNoStorageCacheMap(GridCacheContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
GridCacheMapEntry |
getEntry(Object key)
Returns the entry associated with the specified key in the
HashMap.
|
boolean |
isEmpty() |
int |
publicSize() |
void |
putAll(Map<KeyCacheObject,CacheObject> m)
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 |
putEntry(AffinityTopologyVersion topVer,
KeyCacheObject key,
CacheObject val) |
GridTriple<GridCacheMapEntry> |
putEntryIfObsoleteOrAbsent(AffinityTopologyVersion topVer,
KeyCacheObject key,
CacheObject val,
boolean create) |
GridCacheMapEntry |
randomEntry() |
boolean |
removeEntry(GridCacheEntryEx e)
Removes passed in entry if it presents in the map.
|
GridCacheMapEntry |
removeEntryIfObsolete(KeyCacheObject 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, getEntryFactory, hash, incrementSize, keySet, keySetx, setEntryFactory, stripedEntryIterator, valuespublic GridNoStorageCacheMap(GridCacheContext ctx)
ctx - Cache context.public boolean isEmpty()
isEmpty in class GridCacheConcurrentMapTrue if this map is empty.public int size()
size in class GridCacheConcurrentMappublic int publicSize()
publicSize in class GridCacheConcurrentMappublic boolean containsKey(Object key)
containsKey in class GridCacheConcurrentMapkey - Key.True if map contains mapping for provided key.public GridCacheMapEntry randomEntry()
randomEntry in class GridCacheConcurrentMappublic GridCacheMapEntry getEntry(Object key)
getEntry in class GridCacheConcurrentMapkey - Key.public GridCacheMapEntry putEntry(AffinityTopologyVersion topVer, KeyCacheObject key, @Nullable CacheObject val)
putEntry in class GridCacheConcurrentMaptopVer - Topology version.key - Key.val - Value.public GridTriple<GridCacheMapEntry> putEntryIfObsoleteOrAbsent(AffinityTopologyVersion topVer, KeyCacheObject key, @Nullable CacheObject val, boolean create)
putEntryIfObsoleteOrAbsent in class GridCacheConcurrentMaptopVer - Topology version.key - Key.val - Value.create - Create flag.public void putAll(Map<KeyCacheObject,CacheObject> m)
putAll in class GridCacheConcurrentMapm - mappings to be stored in this map.public boolean removeEntry(GridCacheEntryEx e)
removeEntry in class GridCacheConcurrentMape - Entry to remove.True if remove happened.public GridCacheMapEntry removeEntryIfObsolete(KeyCacheObject key)
removeEntryIfObsolete in class GridCacheConcurrentMapkey - Key.null.public String toString()
toString in class GridCacheConcurrentMap
Follow @ApacheIgnite
Ignite Fabric : ver. 1.4.0 Release Date : September 24 2015