Package org.apache.hadoop.hbase
Class PrivateCellUtil.EmptyCell
java.lang.Object
org.apache.hadoop.hbase.PrivateCellUtil.EmptyCell
- All Implemented Interfaces:
Cell,ExtendedCell,HeapSize,RawCell
- Direct Known Subclasses:
PrivateCellUtil.FirstOnRowCell,PrivateCellUtil.FirstOnRowDeleteFamilyCell,PrivateCellUtil.LastOnRowCell
- Enclosing class:
- PrivateCellUtil
These cells are used in reseeks/seeks to improve the read performance. They are not real cells
that are returned back to the clients
-
Nested Class Summary
-
Field Summary
Fields inherited from interface org.apache.hadoop.hbase.ExtendedCell
CELL_NOT_BASED_ON_CHUNKFields inherited from interface org.apache.hadoop.hbase.RawCell
MAX_TAGS_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Contiguous bytes composed of legal HDFS filename characters which may start at any index in the containing array.byteReturns Number of family bytes.intReturns Array index of first family bytebyte[]Contiguous raw bytes that may start at any index in the containing array.intReturns Number of qualifier bytes.intReturns Array index of first qualifier bytebyte[]Contiguous raw bytes that may start at any index in the containing array.shortReturns Number of row bytes.intReturns Array index of first row bytelongA region-specific unique monotonically increasing sequence ID given to each Cell.byte[]Contiguous raw bytes representing tags that may start at any index in the containing array.intHBase internally uses 2 bytes to store tags length in Cell.intReturn the first offset where the tags start in the Cellbyte[]Contiguous raw bytes that may start at any index in the containing array.intReturns Number of value bytes.intReturns Array index of first value bytevoidsetSequenceId(long seqId) Sets with the given seqId.voidsetTimestamp(byte[] ts) Sets with the given timestamp.voidsetTimestamp(long ts) Sets with the given timestamp.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Cell
getTimestampMethods inherited from interface org.apache.hadoop.hbase.ExtendedCell
deepClone, getChunkId, getSerializedSize, getSerializedSize, getType, getTypeByte, write, write
-
Constructor Details
-
EmptyCell
private EmptyCell()
-
-
Method Details
-
setSequenceId
Description copied from interface:ExtendedCellSets with the given seqId.- Specified by:
setSequenceIdin interfaceExtendedCell- Parameters:
seqId- sequence ID
-
setTimestamp
Description copied from interface:ExtendedCellSets with the given timestamp.- Specified by:
setTimestampin interfaceExtendedCell- Parameters:
ts- timestamp
-
setTimestamp
Description copied from interface:ExtendedCellSets with the given timestamp.- Specified by:
setTimestampin interfaceExtendedCell- Parameters:
ts- buffer containing the timestamp value
-
getRowArray
Description copied from interface:CellContiguous raw bytes that may start at any index in the containing array. Max length is Short.MAX_VALUE which is 32,767 bytes.- Specified by:
getRowArrayin interfaceCell- Returns:
- The array containing the row bytes.
-
getRowOffset
Description copied from interface:CellReturns Array index of first row byte- Specified by:
getRowOffsetin interfaceCell
-
getRowLength
Description copied from interface:CellReturns Number of row bytes. Must be < rowArray.length - offset.- Specified by:
getRowLengthin interfaceCell
-
getFamilyArray
Description copied from interface:CellContiguous bytes composed of legal HDFS filename characters which may start at any index in the containing array. Max length is Byte.MAX_VALUE, which is 127 bytes.- Specified by:
getFamilyArrayin interfaceCell- Returns:
- the array containing the family bytes.
-
getFamilyOffset
Description copied from interface:CellReturns Array index of first family byte- Specified by:
getFamilyOffsetin interfaceCell
-
getFamilyLength
Description copied from interface:CellReturns Number of family bytes. Must be < familyArray.length - offset.- Specified by:
getFamilyLengthin interfaceCell
-
getQualifierArray
Description copied from interface:CellContiguous raw bytes that may start at any index in the containing array.- Specified by:
getQualifierArrayin interfaceCell- Returns:
- The array containing the qualifier bytes.
-
getQualifierOffset
Description copied from interface:CellReturns Array index of first qualifier byte- Specified by:
getQualifierOffsetin interfaceCell
-
getQualifierLength
Description copied from interface:CellReturns Number of qualifier bytes. Must be < qualifierArray.length - offset.- Specified by:
getQualifierLengthin interfaceCell
-
getSequenceId
Description copied from interface:ExtendedCellA region-specific unique monotonically increasing sequence ID given to each Cell. It always exists for cells in the memstore but is not retained forever. It will be kept forHConstants.KEEP_SEQID_PERIODdays, but generally becomes irrelevant after the cell's row is no longer involved in any operations that require strict consistency.- Specified by:
getSequenceIdin interfaceExtendedCell- Returns:
- seqId (always > 0 if exists), or 0 if it no longer exists
-
getValueArray
Description 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 interfaceCell- Returns:
- The array containing the value bytes.
-
getValueOffset
Description copied from interface:CellReturns Array index of first value byte- Specified by:
getValueOffsetin interfaceCell
-
getValueLength
Description copied from interface:CellReturns Number of value bytes. Must be < valueArray.length - offset.- Specified by:
getValueLengthin interfaceCell
-
getTagsArray
Description copied from interface:RawCellContiguous raw bytes representing tags that may start at any index in the containing array.- Specified by:
getTagsArrayin interfaceRawCell- Returns:
- the tags byte array
-
getTagsOffset
Description copied from interface:RawCellReturn the first offset where the tags start in the Cell- Specified by:
getTagsOffsetin interfaceRawCell
-
getTagsLength
Description copied from interface:RawCellHBase internally uses 2 bytes to store tags length in Cell. As the tags length is always a non-negative number, to make good use of the sign bit, the max of tags length is defined 2 * Short.MAX_VALUE + 1 = 65535. As a result, the return type is int, because a short is not capable of handling that. Please note that even if the return type is int, the max tags length is far less than Integer.MAX_VALUE.- Specified by:
getTagsLengthin interfaceRawCell- Returns:
- the total length of the tags in the Cell.
-