java.lang.Object
org.apache.arrow.dataset.jni.NativeMemoryPool
- All Implemented Interfaces:
AutoCloseable
C++ memory pool(arrow::MemoryPool)'s Java mapped instance.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static NativeMemoryPool
createListenable
(ReservationListener listener) Create a listenable memory pool (see also: arrow::ReservationListenableMemoryPool) with a specific listener.long
Get current allocated bytes.static NativeMemoryPool
Get the default memory pool.long
Return native instance ID of this memory pool.
-
Method Details
-
getDefault
Get the default memory pool. This will return arrow::default_memory_pool() directly. -
createListenable
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
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-