public class DefaultAllocationManagerFactory extends Object implements AllocationManager.Factory
Modifier and Type | Field and Description |
---|---|
static AllocationManager.Factory |
FACTORY |
Constructor and Description |
---|
DefaultAllocationManagerFactory() |
Modifier and Type | Method and Description |
---|---|
AllocationManager |
create(BufferAllocator accountingAllocator,
long size)
Create an
AllocationManager . |
ArrowBuf |
empty() |
public static final AllocationManager.Factory FACTORY
public AllocationManager create(BufferAllocator accountingAllocator, long size)
AllocationManager.Factory
AllocationManager
.create
in interface AllocationManager.Factory
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 AllocationManagerpublic ArrowBuf empty()
empty
in interface AllocationManager.Factory
Copyright © 2023 The Apache Software Foundation. All rights reserved.