static class PrivateCellUtil.ValueAndTagRewriteByteBufferExtendedCell extends PrivateCellUtil.TagRewriteByteBufferExtendedCell
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
value |
cell, tagsCELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| Constructor and Description |
|---|
ValueAndTagRewriteByteBufferExtendedCell(ByteBufferExtendedCell cell,
byte[] value,
byte[] tags) |
| 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[] |
getValueArray()
Contiguous raw bytes that may start at any index in the containing array.
|
ByteBuffer |
getValueByteBuffer() |
int |
getValueLength() |
int |
getValueOffset() |
int |
getValuePosition() |
long |
heapSize() |
void |
write(ByteBuffer buf,
int offset)
Write this Cell into the given buf's offset in a
KeyValue format. |
int |
write(OutputStream out,
boolean withTags)
Write this cell to an OutputStream in a
KeyValue format. |
getFamilyArray, getFamilyByteBuffer, getFamilyLength, getFamilyOffset, getFamilyPosition, getQualifierArray, getQualifierByteBuffer, getQualifierLength, getQualifierOffset, getQualifierPosition, getRowArray, getRowByteBuffer, getRowLength, getRowOffset, getRowPosition, getSequenceId, getTagsArray, getTagsByteBuffer, getTagsLength, getTagsOffset, getTagsPosition, getTimestamp, getTypeByte, setSequenceId, setTimestamp, setTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChunkId, getSerializedSizecheckForTagsLength, cloneTags, getTag, getTagsprotected byte[] value
public ValueAndTagRewriteByteBufferExtendedCell(ByteBufferExtendedCell cell, byte[] value, byte[] tags)
public byte[] getValueArray()
CellgetValueArray in interface CellgetValueArray in class PrivateCellUtil.TagRewriteByteBufferExtendedCellpublic int getValueOffset()
getValueOffset in interface CellgetValueOffset in class PrivateCellUtil.TagRewriteByteBufferExtendedCellpublic int getValueLength()
getValueLength in interface CellgetValueLength in class PrivateCellUtil.TagRewriteByteBufferExtendedCellpublic ByteBuffer getValueByteBuffer()
getValueByteBuffer in class PrivateCellUtil.TagRewriteByteBufferExtendedCellByteBuffer containing the value bytes.public int getValuePosition()
getValuePosition in class PrivateCellUtil.TagRewriteByteBufferExtendedCellByteBuffer where value bytes startpublic long heapSize()
heapSize in interface HeapSizeheapSize in class PrivateCellUtil.TagRewriteByteBufferExtendedCellpublic 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 PrivateCellUtil.TagRewriteByteBufferExtendedCellout - Stream to which cell has to be writtenwithTags - Whether to write tags.IOExceptionpublic int getSerializedSize(boolean withTags)
getSerializedSize in interface ExtendedCellgetSerializedSize in class PrivateCellUtil.TagRewriteByteBufferExtendedCellwithTags - 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 void write(ByteBuffer buf, int offset)
ExtendedCellKeyValue format.write in interface ExtendedCellwrite in class PrivateCellUtil.TagRewriteByteBufferExtendedCellbuf - The buffer where to write the Cell.offset - The offset within buffer, to write the Cell.public ExtendedCell deepClone()
ExtendedCelldeepClone in interface ExtendedCelldeepClone in class PrivateCellUtil.TagRewriteByteBufferExtendedCellCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.