|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeCell
@InterfaceAudience.Private public class PrefixTreeCell
As the PrefixTreeArrayScanner moves through the tree bytes, it changes the values in the fields of this class so that Cell logic can be applied, but without allocating new memory for every Cell iterated through.
| Field Summary | |
|---|---|
protected int |
absoluteValueOffset
|
protected byte[] |
block
fields |
static KeyValue.Type |
DEFAULT_TYPE
|
protected byte[] |
familyBuffer
|
protected int |
familyLength
|
protected int |
familyOffset
|
protected boolean |
includeMvccVersion
|
protected Long |
mvccVersion
|
protected byte[] |
qualifierBuffer
|
protected int |
qualifierLength
|
protected int |
qualifierOffset
|
protected byte[] |
rowBuffer
|
protected int |
rowLength
|
protected Long |
timestamp
|
protected KeyValue.Type |
type
|
static KeyValue.Type[] |
TYPES
static |
protected int |
valueLength
|
| Constructor Summary | |
|---|---|
PrefixTreeCell()
|
|
| Method Summary | |
|---|---|
int |
compareTo(Cell other)
|
boolean |
equals(Object obj)
|
byte[] |
getFamilyArray()
Contiguous bytes composed of legal HDFS filename characters which may start at any index in the containing array. |
byte |
getFamilyLength()
|
int |
getFamilyOffset()
|
protected String |
getKeyValueString()
Need this separate method so we can call it from subclasses' toString() methods |
long |
getMvccVersion()
Internal use only. |
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array. |
int |
getQualifierLength()
|
int |
getQualifierOffset()
|
byte[] |
getRowArray()
Contiguous raw bytes that may start at any index in the containing array. |
short |
getRowLength()
|
int |
getRowOffset()
|
byte[] |
getTagsArray()
|
int |
getTagsLength()
|
int |
getTagsOffset()
|
long |
getTimestamp()
|
byte |
getTypeByte()
|
byte[] |
getValueArray()
Contiguous raw bytes that may start at any index in the containing array. |
int |
getValueLength()
|
int |
getValueOffset()
|
int |
hashCode()
|
String |
toString()
For debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final KeyValue.Type[] TYPES
public static final KeyValue.Type DEFAULT_TYPE
protected byte[] block
protected boolean includeMvccVersion
protected byte[] rowBuffer
protected int rowLength
protected byte[] familyBuffer
protected int familyOffset
protected int familyLength
protected byte[] qualifierBuffer
protected int qualifierOffset
protected int qualifierLength
protected Long timestamp
protected Long mvccVersion
protected KeyValue.Type type
protected int absoluteValueOffset
protected int valueLength
| Constructor Detail |
|---|
public PrefixTreeCell()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Cell other)
compareTo in interface Comparable<Cell>public long getTimestamp()
getTimestamp in interface Cellpublic long getMvccVersion()
Cell
getMvccVersion in interface Cellpublic int getValueLength()
getValueLength in interface Cellpublic byte[] getRowArray()
Cell
getRowArray in interface Cellpublic int getRowOffset()
getRowOffset in interface Cellpublic short getRowLength()
getRowLength in interface Cellpublic byte[] getFamilyArray()
Cell
getFamilyArray in interface Cellpublic int getFamilyOffset()
getFamilyOffset in interface Cellpublic byte getFamilyLength()
getFamilyLength in interface Cellpublic byte[] getQualifierArray()
Cell
getQualifierArray in interface Cellpublic int getQualifierOffset()
getQualifierOffset in interface Cellpublic int getQualifierLength()
getQualifierLength in interface Cellpublic byte[] getValueArray()
Cell
getValueArray in interface Cellpublic int getValueOffset()
getValueOffset in interface Cellpublic byte getTypeByte()
getTypeByte in interface Cellprotected String getKeyValueString()
public int getTagsOffset()
getTagsOffset in interface Cellpublic int getTagsLength()
getTagsLength in interface Cellpublic byte[] getTagsArray()
getTagsArray in interface Cell
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||