public final class LlapDataBuffer 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.
|
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() |
long |
getMemoryUsage() |
void |
initialize(int arenaIndex,
ByteBuffer byteBuffer,
int offset,
int length) |
boolean |
invalidate() |
boolean |
isInvalid() |
boolean |
isLocked() |
void |
notifyEvicted(EvictionDispatcher evictionDispatcher) |
static String |
toDataString(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer s) |
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 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 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
public static String toDataString(org.apache.hadoop.hive.common.io.encoded.MemoryBuffer s)
Copyright © 2017 The Apache Software Foundation. All rights reserved.