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
Fields -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Return the size of underlying chunk of memory managed by this Allocation Manager.protected longReturn the absolute memory address pointing to the fist byte of underlying memory chunk.protected voidrelease0()Release the underlying memory chunk.
-
Field Details
-
FACTORY
-
-
Method Details
-
getSize
public long getSize()Description copied from class:AllocationManagerReturn 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:
getSizein classAllocationManager- Returns:
- size of underlying memory chunk
-
memoryAddress
protected long memoryAddress()Description copied from class:AllocationManagerReturn the absolute memory address pointing to the fist byte of underlying memory chunk.- Specified by:
memoryAddressin classAllocationManager
-
release0
protected void release0()Description copied from class:AllocationManagerRelease the underlying memory chunk.- Specified by:
release0in classAllocationManager
-