Package org.apache.arrow.memory
Interface AllocationManager.Factory
- All Known Implementing Classes:
DefaultAllocationManagerFactory
,DefaultAllocationManagerFactory
- Enclosing class:
- AllocationManager
public static interface AllocationManager.Factory
A factory interface for creating
AllocationManager
. One may extend this interface to
use a user-defined AllocationManager implementation.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(BufferAllocator accountingAllocator, long size) Create anAllocationManager
.empty()
-
Method Details
-
create
Create anAllocationManager
.- Parameters:
accountingAllocator
- The allocator that are expected to be associated with newly created AllocationManager. Currently it is always equivalent to "this"size
- Size (in bytes) of memory managed by the AllocationManager- Returns:
- The created AllocationManager used by this allocator
-
empty
ArrowBuf empty()
-