@InterfaceAudience.Private public class SizeCachedNoTagsByteBufferKeyValue extends NoTagsByteBufferKeyValue
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 |
---|
SizeCachedNoTagsByteBufferKeyValue(ByteBuffer buf,
int offset,
int length,
long seqId,
int keyLen) |
SizeCachedNoTagsByteBufferKeyValue(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 |
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, getSerializedSize, getTagsArray, getTagsLength
getBuffer, getFamilyArray, getFamilyByteBuffer, getFamilyLength, getFamilyLength, getFamilyLengthPosition, getFamilyLengthPosition, getFamilyOffset, getFamilyPosition, getFamilyPosition, getOffset, getQualifierArray, getQualifierByteBuffer, getQualifierLength, getQualifierLength, getQualifierOffset, getQualifierPosition, getQualifierPosition, getRowArray, getRowByteBuffer, getRowOffset, getRowPosition, getSequenceId, getSerializedSize, getTagsByteBuffer, 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 SizeCachedNoTagsByteBufferKeyValue(ByteBuffer buf, int offset, int length, long seqId, int keyLen)
public SizeCachedNoTagsByteBufferKeyValue(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 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.