Package org.apache.hadoop.hbase
Class PrivateCellUtil.ValueAndTagRewriteCell
java.lang.Object
org.apache.hadoop.hbase.PrivateCellUtil.TagRewriteCell
org.apache.hadoop.hbase.PrivateCellUtil.ValueAndTagRewriteCell
- All Implemented Interfaces:
- Cell,- ExtendedCell,- HeapSize,- RawCell
- Enclosing class:
- PrivateCellUtil
- 
Nested Class Summary
- 
Field SummaryFieldsFields inherited from class org.apache.hadoop.hbase.PrivateCellUtil.TagRewriteCellcell, tagsFields inherited from interface org.apache.hadoop.hbase.ExtendedCellCELL_NOT_BASED_ON_CHUNKFields inherited from interface org.apache.hadoop.hbase.RawCellMAX_TAGS_LENGTH
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionDoes a deep copy of the contents to a new memory area and returns it as a new cell.intgetSerializedSize(boolean withTags) KeyValue formatbyte[]Contiguous raw bytes that may start at any index in the containing array.intReturns Number of value bytes.intReturns Array index of first value bytelongheapSize()Return the approximate 'exclusive deep size' of implementing object.intwrite(OutputStream out, boolean withTags) Write this cell to an OutputStream in aKeyValueformat.(package private) static intwrite(OutputStream out, boolean withTags, Cell cell, byte[] value, byte[] tags) Made into a static method so as to reuse the logic within ValueAndTagRewriteByteBufferExtendedCellvoidwrite(ByteBuffer buf, int offset) Write this Cell into the given buf's offset in aKeyValueformat.(package private) static voidwrite(ByteBuffer buf, int offset, Cell cell, byte[] value, byte[] tags) Made into a static method so as to reuse the logic within ValueAndTagRewriteByteBufferExtendedCellMethods inherited from class org.apache.hadoop.hbase.PrivateCellUtil.TagRewriteCellgetFamilyArray, getFamilyLength, getFamilyOffset, getQualifierArray, getQualifierLength, getQualifierOffset, getRowArray, getRowLength, getRowOffset, getSequenceId, getTagsArray, getTagsLength, getTagsOffset, getTimestamp, getTypeByte, setSequenceId, setTimestamp, setTimestampMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.ExtendedCellgetChunkId, getSerializedSize
- 
Field Details- 
value
 
- 
- 
Constructor Details- 
ValueAndTagRewriteCell
 
- 
- 
Method Details- 
getValueArrayDescription copied from interface:CellContiguous raw bytes that may start at any index in the containing array. Max length is Integer.MAX_VALUE which is 2,147,483,647 bytes.- Specified by:
- getValueArrayin interface- Cell
- Overrides:
- getValueArrayin class- PrivateCellUtil.TagRewriteCell
- Returns:
- The array containing the value bytes.
 
- 
getValueOffsetDescription copied from interface:CellReturns Array index of first value byte- Specified by:
- getValueOffsetin interface- Cell
- Overrides:
- getValueOffsetin class- PrivateCellUtil.TagRewriteCell
 
- 
getValueLengthDescription copied from interface:CellReturns Number of value bytes. Must be < valueArray.length - offset.- Specified by:
- getValueLengthin interface- Cell
- Overrides:
- getValueLengthin class- PrivateCellUtil.TagRewriteCell
 
- 
heapSizeDescription copied from interface:HeapSizeReturn the approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings.- Specified by:
- heapSizein interface- HeapSize
- Overrides:
- heapSizein class- PrivateCellUtil.TagRewriteCell
 
- 
writeDescription copied from interface:ExtendedCellWrite this cell to an OutputStream in aKeyValueformat.
 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>- Specified by:
- writein interface- ExtendedCell
- Overrides:
- writein class- PrivateCellUtil.TagRewriteCell
- Parameters:
- out- Stream to which cell has to be written
- withTags- Whether to write tags.
- Returns:
- how many bytes are written.
- Throws:
- IOException
 
- 
writestatic int write(OutputStream out, boolean withTags, Cell cell, byte[] value, byte[] tags) throws IOException Made into a static method so as to reuse the logic within ValueAndTagRewriteByteBufferExtendedCell- Throws:
- IOException
 
- 
getSerializedSizeDescription copied from interface: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>- Specified by:
- getSerializedSizein interface- ExtendedCell
- Overrides:
- getSerializedSizein class- PrivateCellUtil.TagRewriteCell
- Parameters:
- withTags- Whether to write tags.
- Returns:
- Bytes count required to serialize this Cell in a KeyValueformat.
 
- 
writeDescription copied from interface:ExtendedCellWrite this Cell into the given buf's offset in aKeyValueformat.- Specified by:
- writein interface- ExtendedCell
- Overrides:
- writein class- PrivateCellUtil.TagRewriteCell
- Parameters:
- buf- The buffer where to write the Cell.
- offset- The offset within buffer, to write the Cell.
 
- 
writeMade into a static method so as to reuse the logic within ValueAndTagRewriteByteBufferExtendedCell
- 
deepCloneDescription copied from interface:ExtendedCellDoes a deep copy of the contents to a new memory area and returns it as a new cell.- Specified by:
- deepClonein interface- ExtendedCell
- Overrides:
- deepClonein class- PrivateCellUtil.TagRewriteCell
- Returns:
- The deep cloned cell
 
 
-