@InterfaceAudience.Private public class IndividualBytesFieldCell extends Object implements ExtendedCell, Cloneable
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
family |
private static long |
FIXED_OVERHEAD |
private int |
fLength |
private int |
fOffset |
private int |
qLength |
private int |
qOffset |
private byte[] |
qualifier |
private int |
rLength |
private int |
rOffset |
private byte[] |
row |
private long |
seqId |
private byte[] |
tags |
private int |
tagsLength |
private int |
tagsOffset |
private long |
timestamp |
private byte |
type |
private byte[] |
value |
private int |
vLength |
private int |
vOffset |
CELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| Constructor and Description |
|---|
IndividualBytesFieldCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
KeyValue.Type type,
byte[] value) |
IndividualBytesFieldCell(byte[] row,
byte[] family,
byte[] qualifier,
long timestamp,
KeyValue.Type type,
long seqId,
byte[] value,
byte[] tags) |
IndividualBytesFieldCell(byte[] row,
int rOffset,
int rLength,
byte[] family,
int fOffset,
int fLength,
byte[] qualifier,
int qOffset,
int qLength,
long timestamp,
KeyValue.Type type,
long seqId,
byte[] value,
int vOffset,
int vLength,
byte[] tags,
int tagsOffset,
int tagsLength) |
| Modifier and Type | Method and Description |
|---|---|
private void |
checkArrayBounds(byte[] bytes,
int offset,
int length) |
Object |
clone()
Implement Cloneable interface
|
byte[] |
getFamilyArray()
Contiguous bytes composed of legal HDFS filename characters which may start at any index in the
containing array.
|
byte |
getFamilyLength() |
int |
getFamilyOffset() |
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array.
|
int |
getQualifierLength() |
int |
getQualifierOffset() |
byte[] |
getRowArray()
Implement Cell interface
|
short |
getRowLength() |
int |
getRowOffset() |
long |
getSequenceId()
A region-specific unique monotonically increasing sequence ID given to each Cell.
|
byte[] |
getTagsArray()
Contiguous raw bytes representing tags that may start at any index in the containing array.
|
int |
getTagsLength()
HBase internally uses 2 bytes to store tags length in Cell.
|
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() |
private long |
heapOverhead() |
long |
heapSize()
Implement HeapSize interface
|
void |
setSequenceId(long seqId)
Sets with the given seqId.
|
void |
setTimestamp(byte[] ts)
Sets with the given timestamp.
|
void |
setTimestamp(long ts)
Sets with the given timestamp.
|
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeepClone, getChunkId, getSerializedSize, getSerializedSize, write, writecheckForTagsLength, cloneTags, getTag, getTagsprivate static final long FIXED_OVERHEAD
private final byte[] row
private final int rOffset
private final int rLength
private final byte[] family
private final int fOffset
private final int fLength
private final byte[] qualifier
private final int qOffset
private final int qLength
private final byte[] value
private final int vOffset
private final int vLength
private final byte[] tags
private final int tagsOffset
private final int tagsLength
private long timestamp
private final byte type
private long seqId
public IndividualBytesFieldCell(byte[] row, byte[] family, byte[] qualifier, long timestamp, KeyValue.Type type, byte[] value)
public IndividualBytesFieldCell(byte[] row, byte[] family, byte[] qualifier, long timestamp, KeyValue.Type type, long seqId, byte[] value, byte[] tags)
public IndividualBytesFieldCell(byte[] row, int rOffset, int rLength, byte[] family, int fOffset, int fLength, byte[] qualifier, int qOffset, int qLength, long timestamp, KeyValue.Type type, long seqId, byte[] value, int vOffset, int vLength, byte[] tags, int tagsOffset, int tagsLength)
private void checkArrayBounds(byte[] bytes, int offset, int length)
private long heapOverhead()
public byte[] getRowArray()
getRowArray in interface Cellpublic int getRowOffset()
getRowOffset in interface Cellpublic short getRowLength()
getRowLength in interface Cellpublic byte[] getFamilyArray()
CellgetFamilyArray in interface Cellpublic int getFamilyOffset()
getFamilyOffset in interface Cellpublic byte getFamilyLength()
getFamilyLength in interface Cellpublic byte[] getQualifierArray()
CellgetQualifierArray in interface Cellpublic int getQualifierOffset()
getQualifierOffset in interface Cellpublic int getQualifierLength()
getQualifierLength in interface Cellpublic long getTimestamp()
getTimestamp in interface Cellpublic byte getTypeByte()
getTypeByte in interface CellgetTypeByte in interface ExtendedCellpublic long getSequenceId()
ExtendedCellHConstants.KEEP_SEQID_PERIOD days, but generally becomes irrelevant after the cell's
row is no longer involved in any operations that require strict consistency.getSequenceId in interface CellgetSequenceId in interface ExtendedCellpublic byte[] getValueArray()
CellgetValueArray in interface Cellpublic int getValueOffset()
getValueOffset in interface Cellpublic int getValueLength()
getValueLength in interface Cellpublic byte[] getTagsArray()
ExtendedCellgetTagsArray in interface CellgetTagsArray in interface ExtendedCellpublic int getTagsOffset()
getTagsOffset in interface CellgetTagsOffset in interface ExtendedCellpublic int getTagsLength()
ExtendedCellgetTagsLength in interface CellgetTagsLength in interface ExtendedCellpublic long heapSize()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void setSequenceId(long seqId)
ExtendedCellsetSequenceId in interface ExtendedCellseqId - sequence IDpublic void setTimestamp(long ts)
ExtendedCellsetTimestamp in interface ExtendedCellts - timestamppublic void setTimestamp(byte[] ts)
ExtendedCellsetTimestamp in interface ExtendedCellts - buffer containing the timestamp valueCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.