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, toStringForCachepublic 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.MemoryBufferpublic ByteBuffer getByteBufferRaw()
getByteBufferRaw in interface org.apache.hadoop.hive.common.io.encoded.MemoryBufferpublic long getMemoryUsage()
getMemoryUsage in class LlapCacheableBufferpublic int incRef()
public boolean isLocked()
isLocked in class LlapCacheableBufferpublic boolean isInvalid()
public int decRef()
public int invalidate()
invalidate in class LlapCacheableBufferpublic int invalidateAndRelease()
public int releaseInvalidated()
public String toString()
toString in class LlapCacheableBufferpublic String toDebugString()
public boolean startMoveOrDiscard(int arenaIx,
int headerIx,
boolean isForceDiscard)
public Boolean cancelDiscard()
public Boolean endDiscard()
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.