com.google.cloud.bigtable.hbase.adapters.read
Class RowCell
- java.lang.Object
-
- com.google.cloud.bigtable.hbase.adapters.read.RowCell
-
- All Implemented Interfaces:
- Cell
public class RowCell extends Object implements Cell
This implementation ofCell
is more efficient for Bigtable scanning thanKeyValue
. 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 Summary
Constructors Constructor and Description RowCell(byte[] rowArray, byte[] familyArray, byte[] qualifierArray, long timestamp, byte[] valueArray)
Constructor for RowCell.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description boolean
equals(Object other)
Needed doing 'contains' on List.byte[]
getFamily()
Deprecated.byte[]
getFamilyArray()
byte
getFamilyLength()
int
getFamilyOffset()
long
getMvccVersion()
Deprecated.byte[]
getQualifier()
Deprecated.byte[]
getQualifierArray()
int
getQualifierLength()
int
getQualifierOffset()
byte[]
getRow()
Deprecated.byte[]
getRowArray()
short
getRowLength()
int
getRowOffset()
long
getSequenceId()
byte[]
getTagsArray()
int
getTagsLength()
int
getTagsOffset()
long
getTimestamp()
byte
getTypeByte()
byte[]
getValue()
Deprecated.byte[]
getValueArray()
int
getValueLength()
int
getValueOffset()
int
hashCode()
In line withequals(Object)
, only uses the key portion, not the value.String
toString()
-
-
-
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 interfaceCell
-
getRowOffset
public int getRowOffset()
- Specified by:
getRowOffset
in interfaceCell
-
getRowLength
public short getRowLength()
- Specified by:
getRowLength
in interfaceCell
-
getFamilyArray
public byte[] getFamilyArray()
- Specified by:
getFamilyArray
in interfaceCell
-
getFamilyOffset
public int getFamilyOffset()
- Specified by:
getFamilyOffset
in interfaceCell
-
getFamilyLength
public byte getFamilyLength()
- Specified by:
getFamilyLength
in interfaceCell
-
getQualifierArray
public byte[] getQualifierArray()
- Specified by:
getQualifierArray
in interfaceCell
-
getQualifierOffset
public int getQualifierOffset()
- Specified by:
getQualifierOffset
in interfaceCell
-
getQualifierLength
public int getQualifierLength()
- Specified by:
getQualifierLength
in interfaceCell
-
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp
in interfaceCell
-
getTypeByte
public byte getTypeByte()
- Specified by:
getTypeByte
in interfaceCell
-
getMvccVersion
@Deprecated public long getMvccVersion()
Deprecated.
-
getSequenceId
public long getSequenceId()
- Specified by:
getSequenceId
in interfaceCell
-
getValueArray
public byte[] getValueArray()
- Specified by:
getValueArray
in interfaceCell
-
getValueOffset
public int getValueOffset()
- Specified by:
getValueOffset
in interfaceCell
-
getValueLength
public int getValueLength()
- Specified by:
getValueLength
in interfaceCell
-
getTagsArray
public byte[] getTagsArray()
- Specified by:
getTagsArray
in interfaceCell
-
getTagsOffset
public int getTagsOffset()
- Specified by:
getTagsOffset
in interfaceCell
-
getTagsLength
public int getTagsLength()
- Specified by:
getTagsLength
in interfaceCell
-
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.
-
hashCode
public int hashCode()
In line withequals(Object)
, only uses the key portion, not the value.
-
-