Package org.apache.arrow.memory.unsafe
Class UnsafeAllocationManager
java.lang.Object
org.apache.arrow.memory.AllocationManager
org.apache.arrow.memory.unsafe.UnsafeAllocationManager
Allocation manager based on unsafe API.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.arrow.memory.AllocationManager
AllocationManager.Factory
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize()
Return the size of underlying chunk of memory managed by this Allocation Manager.protected long
Return the absolute memory address pointing to the fist byte of underlying memory chunk.protected void
release0()
Release the underlying memory chunk.
-
Field Details
-
FACTORY
-
-
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 classAllocationManager
- 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 classAllocationManager
-
release0
protected void release0()Description copied from class:AllocationManager
Release the underlying memory chunk.- Specified by:
release0
in classAllocationManager
-