R - type of the HiDensityRecord to be storedpublic class DefaultHiDensityRecordMap<R extends HiDensityRecord> extends SampleableElasticHashMap<R> implements HiDensityRecordMap<R>
SampleableElasticHashMap.IterableSamplingEntry, SampleableElasticHashMap.SamplingEntryBinaryElasticHashMap.KeyIter, BinaryElasticHashMap.MapEntry, BinaryElasticHashMap.RandomKeyIter, BinaryElasticHashMap.RandomValueIter, BinaryElasticHashMap.ValueIter| Modifier and Type | Field and Description |
|---|---|
protected HiDensityRecordProcessor<R> |
recordProcessor |
protected HiDensityStorageInfo |
storageInfo |
accessor, HEADER_LENGTH_IN_BYTES, memoryBlockProcessor| Constructor and Description |
|---|
DefaultHiDensityRecordMap(int initialCapacity,
HiDensityRecordProcessor<R> recordProcessor,
HiDensityStorageInfo storageInfo) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the map by removing and disposing all key/value pairs stored.
|
protected void |
decreaseEntryCount() |
protected void |
decreaseEntryCount(int entryCount) |
boolean |
delete(com.hazelcast.nio.serialization.Data key) |
protected void |
increaseEntryCount() |
com.hazelcast.elastic.SlottableIterator<Map.Entry<com.hazelcast.nio.serialization.Data,R>> |
iterator(int slot)
Returns a slottable iterator for this
HiDensityRecordMap to iterate over records. |
protected com.hazelcast.memory.NativeOutOfMemoryError |
onOome(com.hazelcast.memory.NativeOutOfMemoryError e) |
R |
put(com.hazelcast.nio.serialization.Data key,
R value) |
R |
putIfAbsent(com.hazelcast.nio.serialization.Data key,
R value) |
R |
remove(Object k) |
boolean |
remove(Object k,
Object v) |
boolean |
set(com.hazelcast.nio.serialization.Data key,
R value) |
createSamplingEntry, getRandomSamplescapacity, containsKey, containsValue, dispose, entryIter, entryIter, entrySet, get, getIfSameKey, getNativeKeyAddress, isEmpty, keyIter, keySet, loadFromOffHeapHeader, newRandomEvictionKeyIterator, newRandomEvictionValueIterator, putAll, readV, replace, replace, size, storeHeaderOffHeap, toString, valueIter, valueIter, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putAll, replace, replace, replaceAll, size, valuesprotected final transient HiDensityRecordProcessor<R extends HiDensityRecord> recordProcessor
protected final transient HiDensityStorageInfo storageInfo
public DefaultHiDensityRecordMap(int initialCapacity,
HiDensityRecordProcessor<R> recordProcessor,
HiDensityStorageInfo storageInfo)
protected void increaseEntryCount()
protected void decreaseEntryCount()
protected void decreaseEntryCount(int entryCount)
public boolean set(com.hazelcast.nio.serialization.Data key,
R value)
set in interface com.hazelcast.elastic.map.ElasticMap<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>set in class BinaryElasticHashMap<R extends HiDensityRecord>public R put(com.hazelcast.nio.serialization.Data key, R value)
put in interface Map<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>put in class BinaryElasticHashMap<R extends HiDensityRecord>public R putIfAbsent(com.hazelcast.nio.serialization.Data key, R value)
putIfAbsent in interface com.hazelcast.elastic.map.ElasticMap<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>putIfAbsent in interface Map<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>putIfAbsent in class BinaryElasticHashMap<R extends HiDensityRecord>public boolean delete(com.hazelcast.nio.serialization.Data key)
delete in interface com.hazelcast.elastic.map.ElasticMap<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>delete in class BinaryElasticHashMap<R extends HiDensityRecord>public R remove(Object k)
remove in interface Map<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>remove in class BinaryElasticHashMap<R extends HiDensityRecord>public boolean remove(Object k, Object v)
remove in interface com.hazelcast.elastic.map.ElasticMap<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>remove in interface Map<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>remove in class BinaryElasticHashMap<R extends HiDensityRecord>public void clear()
BinaryElasticHashMapclear in interface Map<com.hazelcast.nio.serialization.Data,R extends HiDensityRecord>clear in class BinaryElasticHashMap<R extends HiDensityRecord>protected com.hazelcast.memory.NativeOutOfMemoryError onOome(com.hazelcast.memory.NativeOutOfMemoryError e)
onOome in class BinaryElasticHashMap<R extends HiDensityRecord>public com.hazelcast.elastic.SlottableIterator<Map.Entry<com.hazelcast.nio.serialization.Data,R>> iterator(int slot)
HiDensityRecordMap to iterate over records.slot - the slot number (or index) to start the iteratorslotCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.