public abstract class LlapAllocatorBuffer extends LlapCacheableBuffer implements org.apache.hadoop.hive.common.io.encoded.MemoryBuffer
Modifier and Type | Field and Description |
---|---|
int |
allocSize
Allocator uses this to remember the allocation size.
|
ByteBuffer |
byteBuffer |
IN_LIST, indexInHeap, INVALIDATE_ALREADY_INVALID, INVALIDATE_FAILED, INVALIDATE_OK, lastUpdate, next, NOT_IN_CACHE, prev, priority
Constructor and Description |
---|
LlapAllocatorBuffer() |
Modifier and Type | Method and Description |
---|---|
Boolean |
cancelDiscard() |
int |
decRef() |
Boolean |
endDiscard() |
ByteBuffer |
getByteBufferDup() |
ByteBuffer |
getByteBufferRaw() |
long |
getMemoryUsage() |
int |
incRef() |
void |
initialize(ByteBuffer byteBuffer,
int offset,
int length) |
void |
initializeWithExistingSlice(ByteBuffer byteBuffer,
int allocSize) |
int |
invalidate()
Invalidates the cached buffer.
|
int |
invalidateAndRelease()
Invalidates the uncached buffer.
|
boolean |
isInvalid() |
boolean |
isLocked() |
int |
releaseInvalidated()
Marks previously invalidated buffer as released.
|
void |
setNewAllocLocation(int arenaIx,
int headerIx) |
boolean |
startMoveOrDiscard(int arenaIx,
int headerIx,
boolean isForceDiscard) |
String |
toDebugString() |
String |
toString() |
getTag, notifyEvicted, toStringForCache
public ByteBuffer byteBuffer
public int allocSize
public void initialize(ByteBuffer byteBuffer, int offset, int length)
public void initializeWithExistingSlice(ByteBuffer byteBuffer, int allocSize)
public void setNewAllocLocation(int arenaIx, int headerIx)
public ByteBuffer getByteBufferDup()
getByteBufferDup
in interface org.apache.hadoop.hive.common.io.encoded.MemoryBuffer
public ByteBuffer getByteBufferRaw()
getByteBufferRaw
in interface org.apache.hadoop.hive.common.io.encoded.MemoryBuffer
public long getMemoryUsage()
getMemoryUsage
in class LlapCacheableBuffer
public int incRef()
public boolean isLocked()
isLocked
in class LlapCacheableBuffer
public boolean isInvalid()
public int decRef()
public int invalidate()
invalidate
in class LlapCacheableBuffer
public int invalidateAndRelease()
public int releaseInvalidated()
public String toString()
toString
in class LlapCacheableBuffer
public String toDebugString()
public boolean startMoveOrDiscard(int arenaIx, int headerIx, boolean isForceDiscard)
public Boolean cancelDiscard()
public Boolean endDiscard()
Copyright © 2022 The Apache Software Foundation. All rights reserved.