Class ArenaMemoryAllocatorFactory
- java.lang.Object
-
- org.apache.druid.frame.allocation.ArenaMemoryAllocatorFactory
-
- All Implemented Interfaces:
MemoryAllocatorFactory
public class ArenaMemoryAllocatorFactory extends Object implements MemoryAllocatorFactory
CreatesArenaMemoryAllocatoron each call tonewAllocator().
-
-
Constructor Summary
Constructors Constructor Description ArenaMemoryAllocatorFactory(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longallocatorCapacity()Capacity of allocators returned byMemoryAllocatorFactory.newAllocator().MemoryAllocatornewAllocator()Returns a new allocator with capacityMemoryAllocatorFactory.allocatorCapacity().
-
-
-
Method Detail
-
newAllocator
public MemoryAllocator newAllocator()
Description copied from interface:MemoryAllocatorFactoryReturns a new allocator with capacityMemoryAllocatorFactory.allocatorCapacity().- Specified by:
newAllocatorin interfaceMemoryAllocatorFactory
-
allocatorCapacity
public long allocatorCapacity()
Description copied from interface:MemoryAllocatorFactoryCapacity of allocators returned byMemoryAllocatorFactory.newAllocator().- Specified by:
allocatorCapacityin interfaceMemoryAllocatorFactory
-
-