@InterfaceAudience.Private public class NoTagsByteBufferKeyValue extends ByteBufferKeyValue
buf, FIXED_OVERHEAD, length, offset
CELL_NOT_BASED_ON_CHUNK
MAX_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, write
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChunkId
checkForTagsLength, cloneTags, getTag, getTags
public NoTagsByteBufferKeyValue(ByteBuffer buf, int offset, int length)
public NoTagsByteBufferKeyValue(ByteBuffer buf, int offset, int length, long seqId)
public byte[] getTagsArray()
ExtendedCell
getTagsArray
in interface Cell
getTagsArray
in interface ExtendedCell
getTagsArray
in class ByteBufferKeyValue
public int getTagsLength()
ExtendedCell
getTagsLength
in interface Cell
getTagsLength
in interface ExtendedCell
getTagsLength
in class ByteBufferKeyValue
public int getSerializedSize(boolean withTags)
getSerializedSize
in interface ExtendedCell
getSerializedSize
in class ByteBufferKeyValue
withTags
- 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()
ExtendedCell
deepClone
in interface ExtendedCell
deepClone
in class ByteBufferKeyValue
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.