Class WriteLockedOffHeapHashMapFactory<K,​V>

    • Field Detail

      • storageEngineFactory

        private final Factory<? extends StorageEngine<? super K,​? super V>> storageEngineFactory
      • tableSource

        private final PageSource tableSource
      • tableSize

        private final int tableSize
    • Constructor Detail

      • WriteLockedOffHeapHashMapFactory

        public WriteLockedOffHeapHashMapFactory​(PageSource tableSource,
                                                Factory<? extends StorageEngine<? super K,​? super V>> storageEngineFactory)
        Creates segments using the given table buffer source and storage engine factory.
        Parameters:
        tableSource - buffer source from which the segment hash tables are allocated
        storageEngineFactory - factory for the segment storage engines
      • WriteLockedOffHeapHashMapFactory

        public 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.
        Parameters:
        tableSource - buffer source from which the segment hash tables are allocated
        storageEngineFactory - factory for the segment storage engines
        tableSize - initial table size for each segment
    • Method Detail

      • newInstance

        public WriteLockedOffHeapHashMap<K,​V> newInstance()
        Creates a new WriteLockedOffHeapHashMap for use in a segmented map.
        Specified by:
        newInstance in interface Factory<K>
        Returns:
        a new WriteLockedOffHeapHashMap