@InterfaceAudience.Private public class SizeCachedKeyValue extends KeyValue
KeyValue.KeyOnlyKeyValue, KeyValue.KVComparator, KeyValue.MetaComparator, KeyValue.SamePrefixComparator<T>, KeyValue.Type| Modifier and Type | Field and Description |
|---|---|
private static int |
FIXED_OVERHEAD |
private int |
keyLen |
private short |
rowLen |
bytes, COLUMN_FAMILY_DELIM_ARRAY, COLUMN_FAMILY_DELIMITER, COMPARATOR, FAMILY_LENGTH_SIZE, KEY_INFRASTRUCTURE_SIZE, KEY_LENGTH_SIZE, KEYVALUE_INFRASTRUCTURE_SIZE, KEYVALUE_WITH_TAGS_INFRASTRUCTURE_SIZE, length, LOWESTKEY, META_COMPARATOR, offset, ROW_KEY_OFFSET, ROW_LENGTH_SIZE, ROW_OFFSET, TAGS_LENGTH_SIZE, TIMESTAMP_SIZE, TIMESTAMP_TYPE_SIZE, TYPE_SIZECELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| Constructor and Description |
|---|
SizeCachedKeyValue(byte[] bytes,
int offset,
int length,
long seqId,
int keyLen) |
SizeCachedKeyValue(byte[] bytes,
int offset,
int length,
long seqId,
int keyLen,
short rowLen) |
| Modifier and Type | Method and Description |
|---|---|
int |
getKeyLength()
Returns Length of key portion.
|
short |
getRowLength()
Returns Row length
|
int |
getSerializedSize()
Override by just returning the length for saving cost of method dispatching.
|
long |
heapSize()
HeapSize implementation
We do not count the bytes in the rowCache because it should be empty for a KeyValue in the
MemStore.
|
checkParameters, clone, create, create, createKeyOnly, deepClone, equals, getBuffer, getDelimiter, getDelimiterInReverse, getFamilyArray, getFamilyLength, getFamilyLength, getFamilyLengthPosition, getFamilyOffset, getFamilyOffset, getKey, getKeyDataStructureSize, getKeyOffset, getKeyString, getKeyValueDataStructureSize, getKeyValueDataStructureSize, getKeyValueDataStructureSize, getLength, getOffset, getQualifierArray, getQualifierLength, getQualifierLength, getQualifierOffset, getQualifierOffset, getRowArray, getRowOffset, getSequenceId, getSerializedSize, getTagsArray, getTagsLength, getTagsOffset, getTimestamp, getTimestamp, getTimestampOffset, getTypeByte, getTypeByte, getValueArray, getValueLength, getValueOffset, hashCode, humanReadableTimestamp, isLatestTimestamp, keyToString, keyToString, oswrite, setSequenceId, setTimestamp, setTimestamp, shallowCopy, toString, toStringMap, updateLatestStamp, write, write, write, writeByteArrayfinalize, getClass, notify, notifyAll, wait, wait, waitgetChunkIdcheckForTagsLength, cloneTags, createCell, getTag, getTagsprivate static final int FIXED_OVERHEAD
private short rowLen
private int keyLen
public SizeCachedKeyValue(byte[] bytes, int offset, int length, long seqId, int keyLen)
public SizeCachedKeyValue(byte[] bytes, int offset, int length, long seqId, int keyLen, short rowLen)
public short getRowLength()
KeyValuegetRowLength in interface CellgetRowLength in class KeyValuepublic int getKeyLength()
KeyValuegetKeyLength in class KeyValuepublic long heapSize()
KeyValuepublic int getSerializedSize()
ExtendedCell.getSerializedSize() firstly, then forward to
KeyValue.getSerializedSize(boolean). (See HBASE-21657)getSerializedSize in interface CellgetSerializedSize in interface ExtendedCellgetSerializedSize in class KeyValueCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.