@InterfaceAudience.Private public class PrefixTreeCell extends Object implements Cell, Comparable<Cell>
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
PrefixTreeCell() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Cell other) |
boolean |
equals(Object obj) |
byte[] |
getFamily()
WARNING do not use, expensive.
|
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[] |
getQualifier()
WARNING do not use, expensive.
|
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array.
|
int |
getQualifierLength() |
int |
getQualifierOffset() |
byte[] |
getRow()
WARNING do not use, expensive.
|
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()
WARNING do not use, expensive.
|
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.
|
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
public String toString()
public int compareTo(Cell other)
compareTo
in interface Comparable<Cell>
public long getTimestamp()
getTimestamp
in interface Cell
public long getMvccVersion()
Cell
getMvccVersion
in interface Cell
public int getValueLength()
getValueLength
in interface Cell
public byte[] getRowArray()
Cell
getRowArray
in interface Cell
public int getRowOffset()
getRowOffset
in interface Cell
public short getRowLength()
getRowLength
in interface Cell
public byte[] getFamilyArray()
Cell
getFamilyArray
in interface Cell
public int getFamilyOffset()
getFamilyOffset
in interface Cell
public byte getFamilyLength()
getFamilyLength
in interface Cell
public byte[] getQualifierArray()
Cell
getQualifierArray
in interface Cell
public int getQualifierOffset()
getQualifierOffset
in interface Cell
public int getQualifierLength()
getQualifierLength
in interface Cell
public byte[] getValueArray()
Cell
getValueArray
in interface Cell
public int getValueOffset()
getValueOffset
in interface Cell
public byte getTypeByte()
getTypeByte
in interface Cell
public byte[] getValue()
Cell
public byte[] getFamily()
Cell
public byte[] getQualifier()
Cell
getQualifier
in interface Cell
public byte[] getRow()
Cell
protected String getKeyValueString()
public int getTagsOffset()
getTagsOffset
in interface Cell
public short getTagsLength()
getTagsLength
in interface Cell
public byte[] getTagsArray()
getTagsArray
in interface Cell
Copyright © 2013 The Apache Software Foundation. All rights reserved.