- Type Parameters:
K - V -
- All Implemented Interfaces:
- Map<K,V>
public class FSTOffHeapMap<K,V>
extends AbstractMap<K,V>
UNRELEASED UNTESTED !
a simple Map implementation based on OffHeapBuffer. Access is not threadsafe and the offheapbuffer
is not grown automatically when the limit is reached. Note that every put adds a new Entry to the OffHeapBuffer,
so its wise to check using contains before putting an Object (except you explicitely want to overwrite the
existing Object). The maps build an in Java-Heap hashmap Key=>OffHeapIndex. The values are then stored
offheap.
Access is single threaded only, you need to do your own synchronization in order to access this from multiple threads.
All objects put need to implement Serializable