Interface OffHeapLongObjectMap<V>
- Type Parameters:
V- The value type.
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
OffHeapLongObjectMapImpl
A primitive long-to-Object map backed by off-heap memory for the keys/structure.
Designed for zero-allocation lookups on hot paths. The keys are stored in off-heap memory (MemorySegment). The values are stored in a standard Java Object array (on-heap).
-
Method Summary
-
Method Details
-
get
-
put
-
remove
-
clear
void clear() -
size
int size() -
isEmpty
boolean isEmpty() -
containsKey
boolean containsKey(long key) -
close
void close()Releases the underlying off-heap memory.- Specified by:
closein interfaceAutoCloseable
-