@InterfaceAudience.Private public class NoTagsByteBufferKeyValue extends ByteBufferKeyValue
buf, FIXED_OVERHEAD, length, offsetCELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| Constructor and Description |
|---|
NoTagsByteBufferKeyValue(ByteBuffer buf,
int offset,
int length) |
NoTagsByteBufferKeyValue(ByteBuffer buf,
int offset,
int length,
long seqId) |
| Modifier and Type | Method and Description |
|---|---|
ExtendedCell |
deepClone()
Does a deep copy of the contents to a new memory area and returns it as a new cell.
|
int |
getSerializedSize(boolean withTags) |
byte[] |
getTagsArray()
Contiguous raw bytes representing tags that may start at any index in the containing array.
|
int |
getTagsLength()
HBase internally uses 2 bytes to store tags length in Cell.
|
equals, getBuffer, getFamilyArray, getFamilyByteBuffer, getFamilyLength, getFamilyLength, getFamilyLengthPosition, getFamilyLengthPosition, getFamilyOffset, getFamilyPosition, getFamilyPosition, getKeyLength, getOffset, getQualifierArray, getQualifierByteBuffer, getQualifierLength, getQualifierLength, getQualifierOffset, getQualifierPosition, getQualifierPosition, getRowArray, getRowByteBuffer, getRowLength, getRowOffset, getRowPosition, getSequenceId, getSerializedSize, getTagsByteBuffer, getTagsOffset, getTagsPosition, getTimestamp, getTimestamp, getTypeByte, getTypeByte, getValueArray, getValueByteBuffer, getValueLength, getValueOffset, getValuePosition, hashCode, heapSize, setSequenceId, setTimestamp, setTimestamp, toString, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChunkIdcheckForTagsLength, cloneTags, getTag, getTagspublic NoTagsByteBufferKeyValue(ByteBuffer buf, int offset, int length)
public NoTagsByteBufferKeyValue(ByteBuffer buf, int offset, int length, long seqId)
public byte[] getTagsArray()
ExtendedCellgetTagsArray in interface CellgetTagsArray in interface ExtendedCellgetTagsArray in class ByteBufferKeyValuepublic int getTagsLength()
ExtendedCellgetTagsLength in interface CellgetTagsLength in interface ExtendedCellgetTagsLength in class ByteBufferKeyValuepublic int getSerializedSize(boolean withTags)
getSerializedSize in interface ExtendedCellgetSerializedSize in class ByteBufferKeyValuewithTags - Whether to write tags.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>public ExtendedCell deepClone()
ExtendedCelldeepClone in interface ExtendedCelldeepClone in class ByteBufferKeyValueCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.