static class PrivateCellUtil.ValueAndTagRewriteCell extends PrivateCellUtil.TagRewriteCell
| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | value | 
cell, tagsCELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| Constructor and Description | 
|---|
| ValueAndTagRewriteCell(Cell 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)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[] | getValueArray()Contiguous raw bytes that may start at any index in the containing array. | 
| int | getValueLength()Returns Number of value bytes. | 
| int | getValueOffset()Returns Array index of first value byte | 
| long | heapSize()Return the approximate 'exclusive deep size' of implementing object. | 
| void | write(ByteBuffer buf,
     int offset)Write this Cell into the given buf's offset in a  KeyValueformat. | 
| (package private) static void | write(ByteBuffer buf,
     int offset,
     Cell cell,
     byte[] value,
     byte[] tags)Made into a static method so as to reuse the logic within
 ValueAndTagRewriteByteBufferExtendedCell | 
| int | write(OutputStream out,
     boolean withTags)Write this cell to an OutputStream in a  KeyValueformat. | 
| (package private) static int | write(OutputStream out,
     boolean withTags,
     Cell cell,
     byte[] value,
     byte[] tags)Made into a static method so as to reuse the logic within
 ValueAndTagRewriteByteBufferExtendedCell | 
getFamilyArray, getFamilyLength, getFamilyOffset, getQualifierArray, getQualifierLength, getQualifierOffset, getRowArray, getRowLength, getRowOffset, getSequenceId, getTagsArray, getTagsLength, getTagsOffset, getTimestamp, getTypeByte, setSequenceId, setTimestamp, setTimestampclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChunkId, getSerializedSizecheckForTagsLength, cloneTags, createCell, getTag, getTagsprotected byte[] value
public ValueAndTagRewriteCell(Cell cell, byte[] value, byte[] tags)
public byte[] getValueArray()
CellgetValueArray in interface CellgetValueArray in class PrivateCellUtil.TagRewriteCellpublic int getValueOffset()
CellgetValueOffset in interface CellgetValueOffset in class PrivateCellUtil.TagRewriteCellpublic int getValueLength()
CellgetValueLength in interface CellgetValueLength in class PrivateCellUtil.TagRewriteCellpublic long heapSize()
HeapSizeheapSize in interface HeapSizeheapSize in class PrivateCellUtil.TagRewriteCellpublic 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.TagRewriteCellout - Stream to which cell has to be writtenwithTags - Whether to write tags.IOExceptionstatic int write(OutputStream out, boolean withTags, Cell cell, byte[] value, byte[] tags) throws IOException
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 PrivateCellUtil.TagRewriteCellwithTags - Whether to write tags.KeyValue format.public void write(ByteBuffer buf, int offset)
ExtendedCellKeyValue format.write in interface ExtendedCellwrite in class PrivateCellUtil.TagRewriteCellbuf - The buffer where to write the Cell.offset - The offset within buffer, to write the Cell.static void write(ByteBuffer buf, int offset, Cell cell, byte[] value, byte[] tags)
public ExtendedCell deepClone()
ExtendedCelldeepClone in interface ExtendedCelldeepClone in class PrivateCellUtil.TagRewriteCellCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.