@InterfaceAudience.Private public class SizeCachedNoTagsKeyValue extends SizeCachedKeyValue
KeyValue.KeyOnlyKeyValue, KeyValue.KVComparator, KeyValue.MetaComparator, KeyValue.SamePrefixComparator<T>, KeyValue.Typebytes, 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 |
|---|
SizeCachedNoTagsKeyValue(byte[] bytes,
int offset,
int length,
long seqId,
int keyLen) |
SizeCachedNoTagsKeyValue(byte[] bytes,
int offset,
int length,
long seqId,
int keyLen,
short rowLen) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSerializedSize(boolean withTags)
KeyValue format
<4 bytes keylength> <4 bytes valuelength> <2 bytes rowlength>
<row> <1 byte columnfamilylength> <columnfamily> <columnqualifier>
<8 bytes timestamp> <1 byte keytype> <value> <2 bytes tagslength>
<tags> |
int |
getTagsLength()
Return the total length of the tag bytes
|
int |
write(OutputStream out,
boolean withTags)
Write this cell to an OutputStream in a
KeyValue format. |
getKeyLength, getRowLength, getSerializedSize, heapSizecheckParameters, 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, getTagsArray, getTagsOffset, getTimestamp, getTimestamp, getTimestampOffset, getTypeByte, getTypeByte, getValueArray, getValueLength, getValueOffset, hashCode, humanReadableTimestamp, isLatestTimestamp, keyToString, keyToString, oswrite, setSequenceId, setTimestamp, setTimestamp, shallowCopy, toString, toStringMap, updateLatestStamp, write, write, writeByteArrayfinalize, getClass, notify, notifyAll, wait, wait, waitgetChunkIdcheckForTagsLength, cloneTags, createCell, getTag, getTagspublic SizeCachedNoTagsKeyValue(byte[] bytes, int offset, int length, long seqId, int keyLen)
public SizeCachedNoTagsKeyValue(byte[] bytes, int offset, int length, long seqId, int keyLen, short rowLen)
public int getTagsLength()
KeyValuegetTagsLength in interface CellgetTagsLength in interface ExtendedCellgetTagsLength in class KeyValuepublic int write(OutputStream out, boolean withTags) throws IOException
ExtendedCellKeyValue format. <4 bytes keylength> <4 bytes valuelength> <2 bytes rowlength>
<row> <1 byte columnfamilylength> <columnfamily> <columnqualifier>
<8 bytes timestamp> <1 byte keytype> <value> <2 bytes tagslength>
<tags>write in interface ExtendedCellwrite in class KeyValueout - Stream to which cell has to be writtenwithTags - Whether to write tags.IOExceptionpublic int getSerializedSize(boolean withTags)
ExtendedCell<4 bytes keylength> <4 bytes valuelength> <2 bytes rowlength>
<row> <1 byte columnfamilylength> <columnfamily> <columnqualifier>
<8 bytes timestamp> <1 byte keytype> <value> <2 bytes tagslength>
<tags>getSerializedSize in interface ExtendedCellgetSerializedSize in class KeyValuewithTags - Whether to write tags.KeyValue format.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.