|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@InterfaceAudience.Public @InterfaceStability.Evolving public interface Cell
The unit of storage in HBase consisting of the following fields:
1) row 2) column family 3) column qualifier 4) timestamp 5) type 6) MVCC version 7) valueUniqueness is determined by the combination of row, column family, column qualifier, timestamp, and type. The natural comparator will perform a bitwise comparison on row, column family, and column qualifier. Less intuitively, it will then treat the greater timestamp as the lesser value with the goal of sorting newer cells first. This interface should not include methods that allocate new byte[]'s such as those used in client or debugging code. These users should use the methods found in the
CellUtil
class.
Currently for to minimize the impact of existing applications moving between 0.94 and 0.96, we
include the costly helper methods marked as deprecated.
Cell implements Comparable
Method Summary | |
---|---|
byte[] |
getFamily()
Deprecated. as of 0.96, use CellUtil.cloneFamily(Cell) |
byte[] |
getFamilyArray()
Contiguous bytes composed of legal HDFS filename characters which may start at any index in the containing array. |
byte |
getFamilyLength()
|
int |
getFamilyOffset()
|
long |
getMvccVersion()
Internal use only. |
byte[] |
getQualifier()
Deprecated. as of 0.96, use CellUtil.cloneQualifier(Cell) |
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array. |
int |
getQualifierLength()
|
int |
getQualifierOffset()
|
byte[] |
getRow()
Deprecated. as of 0.96, use CellUtil.getRowByte(Cell, int) |
byte[] |
getRowArray()
Contiguous raw bytes that may start at any index in the containing array. |
short |
getRowLength()
|
int |
getRowOffset()
|
byte[] |
getTagsArray()
|
short |
getTagsLength()
|
int |
getTagsOffset()
|
long |
getTimestamp()
|
byte |
getTypeByte()
|
byte[] |
getValue()
Deprecated. as of 0.96, use CellUtil.cloneValue(Cell) |
byte[] |
getValueArray()
Contiguous raw bytes that may start at any index in the containing array. |
int |
getValueLength()
|
int |
getValueOffset()
|
Method Detail |
---|
byte[] getRowArray()
int getRowOffset()
short getRowLength()
byte[] getFamilyArray()
int getFamilyOffset()
byte getFamilyLength()
byte[] getQualifierArray()
int getQualifierOffset()
int getQualifierLength()
long getTimestamp()
byte getTypeByte()
long getMvccVersion()
byte[] getValueArray()
int getValueOffset()
int getValueLength()
byte[] getTagsArray()
int getTagsOffset()
short getTagsLength()
@Deprecated byte[] getValue()
CellUtil.cloneValue(Cell)
@Deprecated byte[] getFamily()
CellUtil.cloneFamily(Cell)
@Deprecated byte[] getQualifier()
CellUtil.cloneQualifier(Cell)
@Deprecated byte[] getRow()
CellUtil.getRowByte(Cell, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |