Class NativeMemoryPool

java.lang.Object
org.apache.arrow.dataset.jni.NativeMemoryPool
All Implemented Interfaces:
AutoCloseable

public class NativeMemoryPool extends Object implements AutoCloseable
C++ memory pool(arrow::MemoryPool)'s Java mapped instance.
  • Method Details

    • getDefault

      public static NativeMemoryPool getDefault()
      Get the default memory pool. This will return arrow::default_memory_pool() directly.
    • createListenable

      public static NativeMemoryPool createListenable(ReservationListener listener)
      Create a listenable memory pool (see also: arrow::ReservationListenableMemoryPool) with a specific listener. All buffers created from the memory pool should take enough reservation from the listener in advance.
    • getNativeInstanceId

      public long getNativeInstanceId()
      Return native instance ID of this memory pool.
    • getBytesAllocated

      public long getBytesAllocated()
      Get current allocated bytes.
    • close

      public void close() throws Exception
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception