Class UnsafeAllocationManager

java.lang.Object
org.apache.arrow.memory.AllocationManager
org.apache.arrow.memory.unsafe.UnsafeAllocationManager

public final class UnsafeAllocationManager extends AllocationManager
Allocation manager based on unsafe API.
  • Field Details

  • Method Details

    • getSize

      public long getSize()
      Description copied from class: AllocationManager
      Return the size of underlying chunk of memory managed by this Allocation Manager.

      The underlying memory chunk managed can be different from the original requested size.

      Specified by:
      getSize in class AllocationManager
      Returns:
      size of underlying memory chunk
    • memoryAddress

      protected long memoryAddress()
      Description copied from class: AllocationManager
      Return the absolute memory address pointing to the fist byte of underlying memory chunk.
      Specified by:
      memoryAddress in class AllocationManager
    • release0

      protected void release0()
      Description copied from class: AllocationManager
      Release the underlying memory chunk.
      Specified by:
      release0 in class AllocationManager