org.terracotta.offheapstore.disk.persistent
Class AbstractPersistentLockedOffHeapHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.terracotta.offheapstore.OffHeapHashMap<K,V>
org.terracotta.offheapstore.AbstractLockedOffHeapHashMap<K,V>
org.terracotta.offheapstore.disk.persistent.AbstractPersistentLockedOffHeapHashMap<K,V>
- All Implemented Interfaces:
- ConcurrentMap<K,V>, ReadWriteLock, Map<K,V>, Persistent, MapInternals, Segment<K,V>, StorageEngine.Owner
- Direct Known Subclasses:
- PersistentReadWriteLockedOffHeapHashMap
public abstract class AbstractPersistentLockedOffHeapHashMap<K,V>
- extends AbstractLockedOffHeapHashMap<K,V>
- implements Persistent
- Author:
- Chris Dennis
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
| Fields inherited from class org.terracotta.offheapstore.OffHeapHashMap |
ENTRY_SIZE, hashtable, hashTablePage, modCount, removedSlots, reprobeLimit, RESERVED_STATUS_BITS, size, STATUS, STATUS_USED, storageEngine, tableSource |
| Methods inherited from class org.terracotta.offheapstore.AbstractLockedOffHeapHashMap |
clear, containsKey, destroy, entrySet, evict, fill, fill, get, getAndSetMetadata, getEncodingForHashAndBinary, installMappingForHashAndEncoding, keySet, put, put, putIfAbsent, readLock, remove, remove, removeMapping, removeNoReturn, replace, replace, setMetadata, shrink, size, values, writeLock |
| Methods inherited from class org.terracotta.offheapstore.OffHeapHashMap |
added, encodingSet, fill, getAllocatedMemory, getAtTableOffset, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getEntryAtTableOffset, getMetadata, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSize, getSlotForHashAndEncoding, getStorageEngine, getTableCapacity, getUsedSlotCount, getVitalMemory, hit, isAvailable, isPresent, isRemoved, isTerminating, isThiefForTableAllocations, removeAtTableOffset, removed, spread, storageEngineFailure, tableExpansionFailure, tryIncreaseReprobe, updated, updateEncoding, updateMetadata |
| Methods inherited from interface org.terracotta.offheapstore.Segment |
getLock |
| Methods inherited from interface org.terracotta.offheapstore.MapInternals |
getAllocatedMemory, getDataAllocatedMemory, getDataOccupiedMemory, getDataSize, getDataVitalMemory, getOccupiedMemory, getRemovedSlotCount, getReprobeLength, getSize, getTableCapacity, getUsedSlotCount, getVitalMemory |
AbstractPersistentLockedOffHeapHashMap
public AbstractPersistentLockedOffHeapHashMap(MappedPageSource tableSource,
PersistentStorageEngine<? super K,? super V> storageEngine,
boolean bootstrap)
AbstractPersistentLockedOffHeapHashMap
public AbstractPersistentLockedOffHeapHashMap(MappedPageSource tableSource,
PersistentStorageEngine<? super K,? super V> storageEngine,
int tableSize,
boolean bootstrap)
flush
public void flush()
throws IOException
- Specified by:
flush in interface Persistent
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Persistent
- Throws:
IOException
persist
public void persist(ObjectOutput output)
throws IOException
- Specified by:
persist in interface Persistent
- Throws:
IOException
bootstrap
public void bootstrap(ObjectInput input)
throws IOException
- Specified by:
bootstrap in interface Persistent
- Throws:
IOException
Copyright © 2015. All Rights Reserved.