RowCell (Cloud Bigtable HBase Client for Java 1.12.0 API)

com.google.cloud.bigtable.hbase.adapters.read

Class RowCell

  • All Implemented Interfaces:
    Cell


    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.
    Version:
    $Id: $Id
    Author:
    sduskis
    • Constructor Detail

      • RowCell

        public RowCell(byte[] rowArray,
                       byte[] familyArray,
                       byte[] qualifierArray,
                       long timestamp,
                       byte[] valueArray)
        Constructor for RowCell.
        Parameters:
        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

        @Deprecated
        public long getMvccVersion()
        Deprecated. 
      • 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

        @Deprecated
        public byte[] getValue()
        Deprecated. 
      • getFamily

        @Deprecated
        public byte[] getFamily()
        Deprecated. 
      • getQualifier

        @Deprecated
        public byte[] getQualifier()
        Deprecated. 
      • getRow

        @Deprecated
        public byte[] getRow()
        Deprecated. 
      • equals

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

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