Class ConcurrentWriteLockedOffHeapHashMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- org.terracotta.offheapstore.concurrent.AbstractConcurrentOffHeapMap<K,V>
-
- org.terracotta.offheapstore.concurrent.ConcurrentWriteLockedOffHeapHashMap<K,V>
-
- Type Parameters:
K- the type of keys maintained by this mapV- the type of mapped values
- All Implemented Interfaces:
java.util.concurrent.ConcurrentMap<K,V>,java.util.Map<K,V>,ConcurrentMapInternals,HashingMap<K,V>,MapInternals
public class ConcurrentWriteLockedOffHeapHashMap<K,V> extends AbstractConcurrentOffHeapMap<K,V>
A striped exclusive-read/write map.This implementation uses instances of
WriteLockedOffHeapHashMapfor its segments.- See Also:
WriteLockedOffHeapHashMap
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.terracotta.offheapstore.concurrent.AbstractConcurrentOffHeapMap
AbstractConcurrentOffHeapMap.AggregatedValuesCollection, AbstractConcurrentOffHeapMap.AggregateEntrySet, AbstractConcurrentOffHeapMap.AggregateIterator<T>, AbstractConcurrentOffHeapMap.AggregateKeySet
-
-
Field Summary
-
Fields inherited from class org.terracotta.offheapstore.concurrent.AbstractConcurrentOffHeapMap
segments
-
-
Constructor Summary
Constructors Constructor Description ConcurrentWriteLockedOffHeapHashMap(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)Creates a map using the given table buffer source and storage engine factory.ConcurrentWriteLockedOffHeapHashMap(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, long tableSize, int concurrency)Creates a map using the given table buffer source, storage engine factory, initial table size, and concurrency.
-
Method Summary
-
Methods inherited from class org.terracotta.offheapstore.concurrent.AbstractConcurrentOffHeapMap
clear, computeIfAbsentWithMetadata, computeIfPresentWithMetadata, computeWithMetadata, containsKey, containsValue, destroy, entrySet, fill, fill, get, getAllocatedMemory, getAndSetMetadata, getConcurrency, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getIndexFor, getMetadata, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSegmentInternals, getSegments, getSize, getTableCapacity, getUsedSlotCount, getValueAndSetMetadata, getVitalMemory, handleOversizeMappingException, keySet, put, put, putIfAbsent, readLockAll, readUnlockAll, remove, remove, removeAllWithHash, removeNoReturn, replace, replace, segmentFor, segmentFor, size, values, writeLockAll, writeUnlockAll
-
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, isEmpty, putAll, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
ConcurrentWriteLockedOffHeapHashMap
public ConcurrentWriteLockedOffHeapHashMap(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
Creates a map using the given table buffer source and storage engine factory.- Parameters:
tableSource- buffer source from which hash tables are allocatedstorageEngineFactory- factory for the segment storage engines
-
ConcurrentWriteLockedOffHeapHashMap
public ConcurrentWriteLockedOffHeapHashMap(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, long tableSize, int concurrency)
Creates a map using the given table buffer source, storage engine factory, initial table size, and concurrency.- Parameters:
tableSource- buffer source from which hash tables are allocatedstorageEngineFactory- factory for the segment storage enginestableSize- initial table size (summed across all segments)concurrency- number of segments
-
-