Class SingleMemoryAllocatorFactory

java.lang.Object
org.apache.druid.frame.allocation.SingleMemoryAllocatorFactory
All Implemented Interfaces:
MemoryAllocatorFactory

public class SingleMemoryAllocatorFactory extends Object implements MemoryAllocatorFactory
Wraps a single MemoryAllocator. The same instance is returned on each call to newAllocator(), after validating that it is 100% free. Calling newAllocator() before freeing all previously-allocated memory leads to an IllegalStateException.