@InterfaceAudience.Private public class SizeCachedByteBufferKeyValue extends ByteBufferKeyValue
ByteBufferExtendedCell where the data resides in
off heap/ on heap ByteBuffer| 限定符和类型 | 字段和说明 |
|---|---|
static int |
FIXED_OVERHEAD |
buf, length, offsetCELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| 构造器和说明 |
|---|
SizeCachedByteBufferKeyValue(ByteBuffer buf,
int offset,
int length,
long seqId,
int keyLen) |
SizeCachedByteBufferKeyValue(ByteBuffer buf,
int offset,
int length,
long seqId,
int keyLen,
short rowLen) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object other)
Needed doing 'contains' on List.
|
int |
getKeyLength() |
short |
getRowLength() |
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() |
deepClone, getBuffer, getFamilyArray, getFamilyByteBuffer, getFamilyLength, getFamilyOffset, getFamilyPosition, getFamilyPosition, getOffset, getQualifierArray, getQualifierByteBuffer, getQualifierLength, getQualifierOffset, getQualifierPosition, getRowArray, getRowByteBuffer, getRowOffset, getRowPosition, getSequenceId, getSerializedSize, getTagsArray, getTagsByteBuffer, getTagsLength, getTagsOffset, getTagsPosition, getTimestamp, getTypeByte, getValueArray, getValueByteBuffer, getValueLength, getValueOffset, getValuePosition, setSequenceId, setTimestamp, setTimestamp, toString, write, writegetChunkIdcheckForTagsLength, cloneTags, createCell, getTag, getTagspublic static final int FIXED_OVERHEAD
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()
getRowLength 在接口中 CellgetRowLength 在类中 ByteBufferKeyValuepublic int getKeyLength()
public long heapSize()
heapSize 在接口中 HeapSizeheapSize 在类中 ByteBufferKeyValuepublic int getSerializedSize()
ExtendedCell.getSerializedSize() firstly, then forward to
KeyValue.getSerializedSize(boolean). (See HBASE-21657)getSerializedSize 在接口中 CellgetSerializedSize 在接口中 ExtendedCellgetSerializedSize 在类中 ByteBufferKeyValuepublic boolean equals(Object other)
ByteBufferKeyValueequals 在类中 ByteBufferKeyValuepublic int hashCode()
ByteBufferKeyValueByteBufferKeyValue.equals(Object), only uses the key portion, not the value.hashCode 在类中 ByteBufferKeyValueCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.