@InterfaceAudience.Private public class SizeCachedByteBufferKeyValue extends ByteBufferKeyValue
ByteBufferExtendedCell where the data resides in off
heap/ on heap ByteBuffer| Modifier and Type | Field and Description |
|---|---|
static int |
FIXED_OVERHEAD |
private int |
keyLen |
private short |
rowLen |
buf, length, offsetCELL_NOT_BASED_ON_CHUNKMAX_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, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChunkIdcheckForTagsLength, cloneTags, createCell, getTag, getTagspublic 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()
CellgetRowLength in interface CellgetRowLength in class ByteBufferKeyValuepublic int getKeyLength()
getKeyLength in class ByteBufferKeyValuepublic long heapSize()
HeapSizeheapSize in interface HeapSizeheapSize in class ByteBufferKeyValuepublic int getSerializedSize()
ExtendedCell.getSerializedSize() firstly, then forward to
KeyValue.getSerializedSize(boolean). (See HBASE-21657)getSerializedSize in interface CellgetSerializedSize in interface ExtendedCellgetSerializedSize in class ByteBufferKeyValuepublic boolean equals(Object other)
ByteBufferKeyValueequals in class ByteBufferKeyValuepublic int hashCode()
ByteBufferKeyValueByteBufferKeyValue.equals(Object), only uses the key portion, not the value.hashCode in class ByteBufferKeyValueCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.