@InternalApi(value="For internal usage only") public class RowCell extends Object implements org.apache.hadoop.hbase.Cell
KeyValue. Unlike KeyValue, RowCell stores
each value separately, which minimizes the number of copies that need to be made when unpacking
the results from the Cloud Bigtable api.
This implementation is a few microseconds quicker than 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.
|
RowCell(byte[] rowArray,
byte[] familyArray,
byte[] qualifierArray,
long timestamp,
byte[] valueArray,
List<String> labels)
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() |
List<String> |
getLabels()
Internal labels that were applied by a transformer filter.
|
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. |
long |
heapSize() |
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 RowCell(byte[] rowArray,
byte[] familyArray,
byte[] qualifierArray,
long timestamp,
byte[] valueArray,
List<String> labels)
rowArray - an array of byte.familyArray - an array of byte.qualifierArray - an array of byte.timestamp - a long.valueArray - an array of byte.labels - a list of string labels.public byte[] getRowArray()
getRowArray in interface org.apache.hadoop.hbase.Cellpublic int getRowOffset()
getRowOffset in interface org.apache.hadoop.hbase.Cellpublic short getRowLength()
getRowLength in interface org.apache.hadoop.hbase.Cellpublic byte[] getFamilyArray()
getFamilyArray in interface org.apache.hadoop.hbase.Cellpublic int getFamilyOffset()
getFamilyOffset in interface org.apache.hadoop.hbase.Cellpublic byte getFamilyLength()
getFamilyLength in interface org.apache.hadoop.hbase.Cellpublic byte[] getQualifierArray()
getQualifierArray in interface org.apache.hadoop.hbase.Cellpublic int getQualifierOffset()
getQualifierOffset in interface org.apache.hadoop.hbase.Cellpublic int getQualifierLength()
getQualifierLength in interface org.apache.hadoop.hbase.Cellpublic long getTimestamp()
getTimestamp in interface org.apache.hadoop.hbase.Cellpublic byte getTypeByte()
getTypeByte in interface org.apache.hadoop.hbase.Cell@Deprecated public long getMvccVersion()
getMvccVersion in interface org.apache.hadoop.hbase.Cellpublic long getSequenceId()
getSequenceId in interface org.apache.hadoop.hbase.Cellpublic byte[] getValueArray()
getValueArray in interface org.apache.hadoop.hbase.Cellpublic int getValueOffset()
getValueOffset in interface org.apache.hadoop.hbase.Cellpublic int getValueLength()
getValueLength in interface org.apache.hadoop.hbase.Cellpublic byte[] getTagsArray()
getTagsArray in interface org.apache.hadoop.hbase.Cellpublic int getTagsOffset()
getTagsOffset in interface org.apache.hadoop.hbase.Cellpublic 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.Cellpublic List<String> getLabels()
WhileMatchFilterAdapter.public boolean equals(Object other)
public int hashCode()
equals(Object), only uses the key portion, not the value.public long heapSize()