@InterfaceAudience.Private public class SizeCachedByteBufferKeyValue extends ByteBufferKeyValue
ByteBufferExtendedCell
where the data resides in
off heap/ on heap ByteBuffer限定符和类型 | 字段和说明 |
---|---|
static int |
FIXED_OVERHEAD |
buf, length, offset
CELL_NOT_BASED_ON_CHUNK
MAX_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, write
getChunkId
checkForTagsLength, cloneTags, createCell, getTag, getTags
public 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
在接口中 Cell
getRowLength
在类中 ByteBufferKeyValue
public int getKeyLength()
public long heapSize()
heapSize
在接口中 HeapSize
heapSize
在类中 ByteBufferKeyValue
public int getSerializedSize()
ExtendedCell.getSerializedSize()
firstly, then forward to
KeyValue.getSerializedSize(boolean)
. (See HBASE-21657)getSerializedSize
在接口中 Cell
getSerializedSize
在接口中 ExtendedCell
getSerializedSize
在类中 ByteBufferKeyValue
public boolean equals(Object other)
ByteBufferKeyValue
equals
在类中 ByteBufferKeyValue
public int hashCode()
ByteBufferKeyValue
ByteBufferKeyValue.equals(Object)
, only uses the key portion, not the value.hashCode
在类中 ByteBufferKeyValue
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.