Class MemoryAddressHash

java.lang.Object
org.infinispan.container.offheap.MemoryAddressHash

public class MemoryAddressHash extends Object
Since:
9.0
Author:
wburns
  • Constructor Details Link icon

  • Method Details Link icon

    • putMemoryAddressOffset Link icon

      public void putMemoryAddressOffset(int offset, long address)
    • getMemoryAddressOffset Link icon

      public long getMemoryAddressOffset(int offset)
    • getMemoryAddressOffsetNoTraceIfAbsent Link icon

      public long getMemoryAddressOffsetNoTraceIfAbsent(int offset)
    • deallocate Link icon

      public void deallocate()
    • toStream Link icon

      public LongStream toStream()
      Returns a stream of longs that are all of the various memory locations
      Returns:
      stream of the various memory locations
    • removeAll Link icon

      public LongStream removeAll()
      Removes all the address lookups by setting them to 0. This method returns a LongStream that contains all of valid (non-zero) addresses that were present during this operation.
      Returns:
      stream with the valid memory pointers to stored values
    • removeAll Link icon

      public LongStream removeAll(int offset, int count)
      Removes all the address lookups by setting them to 0 within the given offset, limiting the removal to only a specific count of addresses. This method returns a LongStream that contains all of valid (non-zero) addresses that were present during this operation.
      Parameters:
      offset - offset into the block
      count - how many pointers to look at
      Returns:
      stream with the valid memory pointers to stored values
    • getPointerCount Link icon

      public int getPointerCount()