Class ArenaMemoryAllocatorFactory
java.lang.Object
org.apache.druid.frame.allocation.ArenaMemoryAllocatorFactory
- All Implemented Interfaces:
MemoryAllocatorFactory
Creates
ArenaMemoryAllocator on each call to newAllocator().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongCapacity of allocators returned byMemoryAllocatorFactory.newAllocator().static MemoryAllocatorFactoryReturns a new allocator with capacityMemoryAllocatorFactory.allocatorCapacity().
-
Constructor Details
-
ArenaMemoryAllocatorFactory
public ArenaMemoryAllocatorFactory(int capacity)
-
-
Method Details
-
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
-
makeDefault
-