@InterfaceAudience.Public @InterfaceStability.Evolving public interface Cell
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 ComparableModifier and Type | Method and Description |
---|---|
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()
Deprecated.
use
getTagsLengthUnsigned() which can handle tags length upto 65535. |
int |
getTagsLengthUnsigned()
Deprecated.
From next major version this will be renamed to getTagsLength() which returns int.
|
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() |
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()
@InterfaceStability.Unstable byte[] getTagsArray()
@InterfaceStability.Unstable int getTagsOffset()
@Deprecated @InterfaceStability.Unstable short getTagsLength()
getTagsLengthUnsigned()
which can handle tags length upto 65535.@Deprecated @InterfaceStability.Unstable int getTagsLengthUnsigned()
@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)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.