Class OffHeapLongIntMapImpl

java.lang.Object
express.mvp.roray.utils.collections.OffHeapLongIntMapImpl
All Implemented Interfaces:
OffHeapLongIntMap, AutoCloseable

public class OffHeapLongIntMapImpl extends Object implements OffHeapLongIntMap
A linear-probing, open-addressing hash map with off-heap keys and off-heap int values.

Not thread-safe. Designed for single-threaded hot paths.

  • Constructor Details

    • OffHeapLongIntMapImpl

      public OffHeapLongIntMapImpl(int capacity, int missingValue)
      Creates a new off-heap long-to-int map with specified capacity and missing value.
      Parameters:
      capacity - the capacity (must be a power of 2)
      missingValue - the value returned for missing keys
    • OffHeapLongIntMapImpl

      public OffHeapLongIntMapImpl(int capacity)
  • Method Details