public final class LlapDataBuffer extends LlapCacheableBuffer implements MemoryBuffer
Modifier and Type | Field and Description |
---|---|
int |
allocSize
Allocator uses this to remember the allocation size.
|
int |
arenaIndex
Allocator uses this to remember which arena to alloc from.
|
ByteBuffer |
byteBuffer |
int |
declaredCachedLength
ORC cache uses this to store compressed length; buffer is cached uncompressed, but
the lookup is on compressed ranges, so we need to know this.
|
protected AtomicInteger |
refCount |
static int |
UNKNOWN_CACHED_LENGTH |
IN_LIST, indexInHeap, lastUpdate, next, NOT_IN_CACHE, prev, priority
Constructor and Description |
---|
LlapDataBuffer() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getByteBufferDup() |
ByteBuffer |
getByteBufferRaw()
Note - raw buffer should not be modified.
|
long |
getMemoryUsage() |
void |
initialize(int arenaIndex,
ByteBuffer byteBuffer,
int offset,
int length) |
boolean |
invalidate() |
boolean |
isInvalid() |
boolean |
isLocked() |
void |
notifyEvicted(EvictionDispatcher evictionDispatcher) |
String |
toString() |
toStringForCache
public static final int UNKNOWN_CACHED_LENGTH
protected final AtomicInteger refCount
public ByteBuffer byteBuffer
public int arenaIndex
public int allocSize
public int declaredCachedLength
public void initialize(int arenaIndex, ByteBuffer byteBuffer, int offset, int length)
public ByteBuffer getByteBufferDup()
getByteBufferDup
in interface MemoryBuffer
public ByteBuffer getByteBufferRaw()
MemoryBuffer
getByteBufferRaw
in interface MemoryBuffer
public long getMemoryUsage()
getMemoryUsage
in class LlapCacheableBuffer
public void notifyEvicted(EvictionDispatcher evictionDispatcher)
notifyEvicted
in class LlapCacheableBuffer
public boolean isLocked()
isLocked
in class LlapCacheableBuffer
public boolean isInvalid()
public boolean invalidate()
invalidate
in class LlapCacheableBuffer
public String toString()
toString
in class LlapCacheableBuffer
Copyright © 2016 The Apache Software Foundation. All rights reserved.