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