K - the type of keys held by the generated mapsV - the type of mapped valuespublic class ReadWriteLockedOffHeapHashMapFactory<K,V> extends Object implements Factory<ReadWriteLockedOffHeapHashMap<K,V>>
ReadWriteLockedOffHeapHashMap instances.| Constructor and Description |
|---|
ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource,
boolean tableAllocationsSteal,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory) |
ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource,
boolean tableAllocationsSteal,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory,
int tableSize)
Creates segments using the given table buffer source, storage engine
factory, and initial table size.
|
ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
Creates segments using the given table buffer source and storage engine
factory.
|
ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource,
Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory,
int tableSize) |
| Modifier and Type | Method and Description |
|---|---|
ReadWriteLockedOffHeapHashMap<K,V> |
newInstance()
Creates a new
ReadWriteLockedOffHeapHashMap for use in a
segmented map. |
public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
tableSource - buffer source from which the segment hash tables are allocatedstorageEngineFactory - factory for the segment storage enginespublic ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, boolean tableAllocationsSteal, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory)
public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, int tableSize)
public ReadWriteLockedOffHeapHashMapFactory(PageSource tableSource, boolean tableAllocationsSteal, Factory<? extends StorageEngine<? super K,? super V>> storageEngineFactory, int tableSize)
tableSource - buffer source from which the segment hash tables are allocatedtableAllocationsSteal - whether table allocations should stealstorageEngineFactory - factory for the segment storage enginestableSize - initial table size for each segmentpublic ReadWriteLockedOffHeapHashMap<K,V> newInstance()
ReadWriteLockedOffHeapHashMap for use in a
segmented map.newInstance in interface Factory<ReadWriteLockedOffHeapHashMap<K,V>>ReadWriteLockedOffHeapHashMapCopyright © 2015–2024. All rights reserved.