@InternalApi(value="For internal usage only") public class RowCell extends Object implements org.apache.hadoop.hbase.Cell
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.
For internal use only - public for technical reasons.
Constructor and Description |
---|
RowCell(byte[] rowArray,
byte[] familyArray,
byte[] qualifierArray,
long timestamp,
byte[] valueArray)
Constructor for RowCell.
|
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 with
equals(Object) , only uses the key portion, not the value. |
String |
toString() |
public RowCell(byte[] rowArray, byte[] familyArray, byte[] qualifierArray, long timestamp, byte[] valueArray)
rowArray
- an array of byte.familyArray
- an array of byte.qualifierArray
- an array of byte.timestamp
- a long.valueArray
- an array of byte.public byte[] getRowArray()
getRowArray
in interface org.apache.hadoop.hbase.Cell
public int getRowOffset()
getRowOffset
in interface org.apache.hadoop.hbase.Cell
public short getRowLength()
getRowLength
in interface org.apache.hadoop.hbase.Cell
public byte[] getFamilyArray()
getFamilyArray
in interface org.apache.hadoop.hbase.Cell
public int getFamilyOffset()
getFamilyOffset
in interface org.apache.hadoop.hbase.Cell
public byte getFamilyLength()
getFamilyLength
in interface org.apache.hadoop.hbase.Cell
public byte[] getQualifierArray()
getQualifierArray
in interface org.apache.hadoop.hbase.Cell
public int getQualifierOffset()
getQualifierOffset
in interface org.apache.hadoop.hbase.Cell
public int getQualifierLength()
getQualifierLength
in interface org.apache.hadoop.hbase.Cell
public long getTimestamp()
getTimestamp
in interface org.apache.hadoop.hbase.Cell
public byte getTypeByte()
getTypeByte
in interface org.apache.hadoop.hbase.Cell
@Deprecated public long getMvccVersion()
getMvccVersion
in interface org.apache.hadoop.hbase.Cell
public long getSequenceId()
getSequenceId
in interface org.apache.hadoop.hbase.Cell
public byte[] getValueArray()
getValueArray
in interface org.apache.hadoop.hbase.Cell
public int getValueOffset()
getValueOffset
in interface org.apache.hadoop.hbase.Cell
public int getValueLength()
getValueLength
in interface org.apache.hadoop.hbase.Cell
public byte[] getTagsArray()
getTagsArray
in interface org.apache.hadoop.hbase.Cell
public int getTagsOffset()
getTagsOffset
in interface org.apache.hadoop.hbase.Cell
public int getTagsLength()
getTagsLength
in interface org.apache.hadoop.hbase.Cell
@Deprecated public byte[] getValue()
getValue
in interface org.apache.hadoop.hbase.Cell
@Deprecated public byte[] getFamily()
getFamily
in interface org.apache.hadoop.hbase.Cell
@Deprecated public byte[] getQualifier()
getQualifier
in interface org.apache.hadoop.hbase.Cell
@Deprecated public byte[] getRow()
getRow
in interface org.apache.hadoop.hbase.Cell
public boolean equals(Object other)
public int hashCode()
equals(Object)
, only uses the key portion, not the value.