public class RootAllocator extends BaseAllocator
BaseAllocator.Reservation, BaseAllocator.Verbosity| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected org.apache.arrow.memory.Accountant |
parent
The parent allocator
|
protected long |
reservation
The amount of memory reserved for this allocator.
|
DEBUG, DEBUG_ALLOCATOR, DEBUG_LOG_LENGTH| コンストラクタと説明 |
|---|
RootAllocator(AllocationListener listener,
long limit) |
RootAllocator(long limit) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
long |
getAllocatedMemory()
Return the current amount of allocated memory that this Accountant is managing accounting
for.
|
long |
getHeadroom() |
long |
getLimit()
Return the current limit of this Accountant.
|
long |
getPeakMemoryAllocation()
The peak memory allocated by this Accountant.
|
boolean |
isOverLimit() |
void |
releaseBytes(long size) |
void |
setLimit(long newLimit)
Set the maximum amount of memory that can be allocated in the this Accountant before failing
an allocation.
|
void |
verify()
Verify the accounting state of the allocation system.
|
assertOpen, buffer, buffer, close, getAsByteBufAllocator, getEmpty, getName, indent, isDebug, newChildAllocator, newChildAllocator, newReservation, nextPowerOfTwo, nextPowerOfTwo, toString, toVerboseStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllocatedMemory, getHeadroom, getLimit, getPeakMemoryAllocation, isOverLimit, setLimitprotected final org.apache.arrow.memory.Accountant parent
protected final long reservation
public RootAllocator(long limit)
public RootAllocator(AllocationListener listener, long limit)
public void verify()
public void releaseBytes(long size)
public boolean isOverLimit()
public long getLimit()
public void setLimit(long newLimit)
newLimit - The limit in bytes.public long getAllocatedMemory()
public long getPeakMemoryAllocation()
public long getHeadroom()
Copyright © 2018 The Apache Software Foundation. All rights reserved.