@InterfaceAudience.Private public class SizeCachedByteBufferKeyValue extends ByteBufferKeyValue
ByteBufferExtendedCell
where the data resides in off
heap/ on heap ByteBufferModifier and Type | Field and Description |
---|---|
static int |
FIXED_OVERHEAD |
private int |
keyLen |
private short |
rowLen |
buf, length, offset
CELL_NOT_BASED_ON_CHUNK
MAX_TAGS_LENGTH
Constructor and Description |
---|
SizeCachedByteBufferKeyValue(ByteBuffer buf,
int offset,
int length,
long seqId,
int keyLen) |
SizeCachedByteBufferKeyValue(ByteBuffer buf,
int offset,
int length,
long seqId,
int keyLen,
short rowLen) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Needed doing 'contains' on List.
|
int |
getKeyLength() |
short |
getRowLength()
Returns Number of row bytes.
|
int |
getSerializedSize()
Override by just returning the length for saving cost of method dispatching.
|
int |
hashCode()
In line with
ByteBufferKeyValue.equals(Object) , only uses the key portion, not the value. |
long |
heapSize()
Return the approximate 'exclusive deep size' of implementing object.
|
deepClone, getBuffer, getFamilyArray, getFamilyByteBuffer, getFamilyLength, getFamilyLength, getFamilyLengthPosition, getFamilyLengthPosition, getFamilyOffset, getFamilyPosition, getFamilyPosition, getOffset, getQualifierArray, getQualifierByteBuffer, getQualifierLength, getQualifierLength, getQualifierOffset, getQualifierPosition, getQualifierPosition, getRowArray, getRowByteBuffer, getRowOffset, getRowPosition, getSequenceId, getSerializedSize, getTagsArray, getTagsByteBuffer, getTagsLength, getTagsOffset, getTagsPosition, getTimestamp, getTimestamp, getTypeByte, getTypeByte, getValueArray, getValueByteBuffer, getValueLength, getValueOffset, getValuePosition, setSequenceId, setTimestamp, setTimestamp, toString, write, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChunkId
checkForTagsLength, cloneTags, createCell, getTag, getTags
public static final int FIXED_OVERHEAD
private short rowLen
private int keyLen
public SizeCachedByteBufferKeyValue(ByteBuffer buf, int offset, int length, long seqId, int keyLen)
public SizeCachedByteBufferKeyValue(ByteBuffer buf, int offset, int length, long seqId, int keyLen, short rowLen)
public short getRowLength()
Cell
getRowLength
in interface Cell
getRowLength
in class ByteBufferKeyValue
public int getKeyLength()
getKeyLength
in class ByteBufferKeyValue
public long heapSize()
HeapSize
heapSize
in interface HeapSize
heapSize
in class ByteBufferKeyValue
public int getSerializedSize()
ExtendedCell.getSerializedSize()
firstly, then forward to
KeyValue.getSerializedSize(boolean)
. (See HBASE-21657)getSerializedSize
in interface Cell
getSerializedSize
in interface ExtendedCell
getSerializedSize
in class ByteBufferKeyValue
public boolean equals(Object other)
ByteBufferKeyValue
equals
in class ByteBufferKeyValue
public int hashCode()
ByteBufferKeyValue
ByteBufferKeyValue.equals(Object)
, only uses the key portion, not the value.hashCode
in class ByteBufferKeyValue
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.