public class RowCell extends Object implements 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.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)
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.public byte[] getRowArray()
getRowArray
in interface Cell
public int getRowOffset()
getRowOffset
in interface Cell
public short getRowLength()
getRowLength
in interface Cell
public byte[] getFamilyArray()
getFamilyArray
in interface Cell
public int getFamilyOffset()
getFamilyOffset
in interface Cell
public byte getFamilyLength()
getFamilyLength
in interface Cell
public byte[] getQualifierArray()
getQualifierArray
in interface Cell
public int getQualifierOffset()
getQualifierOffset
in interface Cell
public int getQualifierLength()
getQualifierLength
in interface Cell
public long getTimestamp()
getTimestamp
in interface Cell
public byte getTypeByte()
getTypeByte
in interface Cell
@Deprecated public long getMvccVersion()
getMvccVersion
in interface Cell
public long getSequenceId()
getSequenceId
in interface Cell
public byte[] getValueArray()
getValueArray
in interface Cell
public int getValueOffset()
getValueOffset
in interface Cell
public int getValueLength()
getValueLength
in interface Cell
public byte[] getTagsArray()
getTagsArray
in interface Cell
public int getTagsOffset()
getTagsOffset
in interface Cell
public int getTagsLength()
getTagsLength
in interface Cell
@Deprecated public byte[] getValue()
@Deprecated public byte[] getFamily()
@Deprecated public byte[] getQualifier()
getQualifier
in interface Cell
@Deprecated public byte[] getRow()
public boolean equals(Object other)
public int hashCode()
equals(Object)
, only uses the key portion, not the value.