V - type of valuepublic class SampleableElasticHashMap<V extends com.hazelcast.memory.MemoryBlock> extends BinaryElasticHashMap<V>
BinaryElasticHashMap that allows quick random sampling of its entries.| Modifier and Type | Class and Description |
|---|---|
class |
SampleableElasticHashMap.IterableSamplingEntry
Iterable sampling entry to prevent from extra object creation for iteration.
|
class |
SampleableElasticHashMap.SamplingEntry
Entry to define keys and values for sampling.
|
BinaryElasticHashMap.KeyIter, BinaryElasticHashMap.MapEntry, BinaryElasticHashMap.RandomKeyIter, BinaryElasticHashMap.RandomValueIter, BinaryElasticHashMap.ValueIteraccessor, HEADER_LENGTH_IN_BYTES, memoryBlockProcessor| Constructor and Description |
|---|
SampleableElasticHashMap(EnterpriseSerializationService serializationService,
com.hazelcast.memory.MemoryBlockAccessor<V> memoryBlockAccessor,
com.hazelcast.internal.memory.MemoryAllocator malloc) |
SampleableElasticHashMap(int initialCapacity,
EnterpriseSerializationService serializationService,
com.hazelcast.memory.MemoryBlockAccessor<V> memoryBlockAccessor,
com.hazelcast.internal.memory.MemoryAllocator malloc) |
SampleableElasticHashMap(int initialCapacity,
float loadFactor,
EnterpriseSerializationService serializationService,
com.hazelcast.memory.MemoryBlockAccessor<V> memoryBlockAccessor,
com.hazelcast.internal.memory.MemoryAllocator malloc) |
SampleableElasticHashMap(int initialCapacity,
float loadFactor,
MemoryBlockProcessor<V> memoryBlockProcessor) |
SampleableElasticHashMap(int initialCapacity,
MemoryBlockProcessor<V> memoryBlockProcessor) |
| Modifier and Type | Method and Description |
|---|---|
protected <E extends SampleableElasticHashMap.SamplingEntry> |
createSamplingEntry(int slot) |
<E extends SampleableElasticHashMap.SamplingEntry> |
getRandomSamples(int sampleCount) |
capacity, clear, containsKey, containsValue, delete, dispose, entryIter, entryIter, entrySet, get, getIfSameKey, getNativeKeyAddress, isEmpty, keyIter, keySet, loadFromOffHeapHeader, newRandomEvictionKeyIterator, newRandomEvictionValueIterator, onOome, put, putAll, putIfAbsent, readV, remove, remove, replace, replace, set, size, storeHeaderOffHeap, toString, valueIter, valueIter, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, replaceAllpublic SampleableElasticHashMap(EnterpriseSerializationService serializationService, com.hazelcast.memory.MemoryBlockAccessor<V> memoryBlockAccessor, com.hazelcast.internal.memory.MemoryAllocator malloc)
public SampleableElasticHashMap(int initialCapacity,
EnterpriseSerializationService serializationService,
com.hazelcast.memory.MemoryBlockAccessor<V> memoryBlockAccessor,
com.hazelcast.internal.memory.MemoryAllocator malloc)
public SampleableElasticHashMap(int initialCapacity,
float loadFactor,
EnterpriseSerializationService serializationService,
com.hazelcast.memory.MemoryBlockAccessor<V> memoryBlockAccessor,
com.hazelcast.internal.memory.MemoryAllocator malloc)
public SampleableElasticHashMap(int initialCapacity,
MemoryBlockProcessor<V> memoryBlockProcessor)
public SampleableElasticHashMap(int initialCapacity,
float loadFactor,
MemoryBlockProcessor<V> memoryBlockProcessor)
protected <E extends SampleableElasticHashMap.SamplingEntry> E createSamplingEntry(int slot)
public <E extends SampleableElasticHashMap.SamplingEntry> Iterable<E> getRandomSamples(int sampleCount)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.