RowCell (Cloud Bigtable HBase Client for Java 1.12.0 API)

Class RowCell

  • All Implemented Interfaces:

    public class RowCell
    extends Object
    implements Cell
    This implementation of Cell is more efficient for Bigtable scanning than KeyValue . RowCell is pretty straight forward. Each *Array() method returns the array passed in in the constructor. Each *Offset() method returns 0. Each *Length() returns the length of the array. This implementation is a few microseconds quicker thank KeyValue, which makes a big performance difference for large scans.
    $Id: $Id
    • Constructor Detail

      • RowCell

        public RowCell(byte[] rowArray,
                       byte[] familyArray,
                       byte[] qualifierArray,
                       long timestamp,
                       byte[] valueArray)
        Constructor for RowCell.
        rowArray - an array of byte.
        familyArray - an array of byte.
        qualifierArray - an array of byte.
        timestamp - a long.
        valueArray - an array of byte.
    • Method Detail

      • getRowArray

        public byte[] getRowArray()
        Specified by:
        getRowArray in interface Cell
      • getRowOffset

        public int getRowOffset()
        Specified by:
        getRowOffset in interface Cell
      • getRowLength

        public short getRowLength()
        Specified by:
        getRowLength in interface Cell
      • getFamilyArray

        public byte[] getFamilyArray()
        Specified by:
        getFamilyArray in interface Cell
      • getFamilyOffset

        public int getFamilyOffset()
        Specified by:
        getFamilyOffset in interface Cell
      • getFamilyLength

        public byte getFamilyLength()
        Specified by:
        getFamilyLength in interface Cell
      • getQualifierArray

        public byte[] getQualifierArray()
        Specified by:
        getQualifierArray in interface Cell
      • getTimestamp

        public long getTimestamp()
        Specified by:
        getTimestamp in interface Cell
      • getTypeByte

        public byte getTypeByte()
        Specified by:
        getTypeByte in interface Cell
      • getMvccVersion

        public long getMvccVersion()
      • getSequenceId

        public long getSequenceId()
        Specified by:
        getSequenceId in interface Cell
      • getValueArray

        public byte[] getValueArray()
        Specified by:
        getValueArray in interface Cell
      • getValueOffset

        public int getValueOffset()
        Specified by:
        getValueOffset in interface Cell
      • getValueLength

        public int getValueLength()
        Specified by:
        getValueLength in interface Cell
      • getTagsArray

        public byte[] getTagsArray()
        Specified by:
        getTagsArray in interface Cell
      • getTagsOffset

        public int getTagsOffset()
        Specified by:
        getTagsOffset in interface Cell
      • getTagsLength

        public int getTagsLength()
        Specified by:
        getTagsLength in interface Cell
      • getValue

        public byte[] getValue()
      • getFamily

        public byte[] getFamily()
      • getQualifier

        public byte[] getQualifier()
      • getRow

        public byte[] getRow()
      • equals

        public boolean equals(Object other)
        Needed doing 'contains' on List. Only compares the key portion, not the value.
        equals in class Object
      • hashCode

        public int hashCode()
        In line with equals(Object), only uses the key portion, not the value.
        hashCode in class Object