@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)
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> |
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, getFamilyOffset, getFamilyPosition, getFamilyPosition, getOffset, getQualifierArray, getQualifierByteBuffer, getQualifierLength, getQualifierOffset, getQualifierPosition, getRowArray, getRowByteBuffer, getRowLength, getRowOffset, getRowPosition, getSequenceId, getSerializedSize, getTagsByteBuffer, getTagsOffset, getTagsPosition, getTimestamp, getTypeByte, getValueArray, getValueByteBuffer, getValueLength, getValueOffset, getValuePosition, hashCode, heapSize, setSequenceId, setTimestamp, setTimestamp, toString, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChunkIdcheckForTagsLength, cloneTags, createCell, 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)
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 ByteBufferKeyValuewithTags - Whether to write tags.KeyValue format.public ExtendedCell deepClone()
ExtendedCelldeepClone in interface ExtendedCelldeepClone in class ByteBufferKeyValueCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.