Package org.apache.drill.exec.memory
Class RootAllocator
java.lang.Object
org.apache.drill.exec.memory.Accountant
org.apache.drill.exec.memory.BaseAllocator
org.apache.drill.exec.memory.RootAllocator
- All Implemented Interfaces:
AutoCloseable
,BufferAllocator
The root allocator for using direct memory inside a Drillbit. Supports creating a
tree of descendant child allocators.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.memory.BaseAllocator
BaseAllocator.Reservation, BaseAllocator.Verbosity
Nested classes/interfaces inherited from class org.apache.drill.exec.memory.Accountant
Accountant.AllocationOutcome
-
Field Summary
Fields inherited from class org.apache.drill.exec.memory.BaseAllocator
DEBUG, DEBUG_ALLOCATOR, DEBUG_LOG_LENGTH
Fields inherited from class org.apache.drill.exec.memory.Accountant
ALLOW_LENIENCY, ALLOW_LENIENT_ALLOCATION, GRACE_MARGIN, MAX_GRACE, parent, reservation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
verify()
Verify the accounting state of the allocation system.Methods inherited from class org.apache.drill.exec.memory.BaseAllocator
assertOpen, buffer, buffer, close, getAsByteBufAllocator, getEmpty, getIOBuffer, getName, indent, isDebug, longNextPowerOfTwo, newChildAllocator, newReservation, nextPowerOfTwo, read, read, toString, toVerboseString, write, write
Methods inherited from class org.apache.drill.exec.memory.Accountant
forceLenient, getAllocatedMemory, getLimit, getPeakMemoryAllocation, isOverLimit, releaseBytes, setLenient, setLimit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.memory.BufferAllocator
getAllocatedMemory, getLimit, getPeakMemoryAllocation, isOverLimit, setLenient, setLimit
-
Constructor Details
-
RootAllocator
public RootAllocator(long limit)
-
-
Method Details
-
verify
public void verify()Verify the accounting state of the allocation system.
-