private static final class Mutation.CellWrapper extends Object implements ExtendedCell
| Modifier and Type | Field and Description |
|---|---|
private Cell |
cell |
private static long |
FIXED_OVERHEAD |
private long |
sequenceId |
private long |
timestamp |
CELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| Constructor and Description |
|---|
CellWrapper(Cell cell) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
cloneTags()
Allows cloning the tags in the cell to a new byte[]
|
byte[] |
getFamilyArray()
Contiguous bytes composed of legal HDFS filename characters which may start at any index in the
containing array.
|
byte |
getFamilyLength()
Returns Number of family bytes.
|
int |
getFamilyOffset()
Returns Array index of first family byte
|
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array.
|
int |
getQualifierLength()
Returns Number of qualifier bytes.
|
int |
getQualifierOffset()
Returns Array index of first qualifier byte
|
byte[] |
getRowArray()
Contiguous raw bytes that may start at any index in the containing array.
|
short |
getRowLength()
Returns Number of row bytes.
|
int |
getRowOffset()
Returns Array index of first row byte
|
long |
getSequenceId()
A region-specific unique monotonically increasing sequence ID given to each Cell.
|
Optional<Tag> |
getTag(byte type)
Returns the specific tag of the given type
|
Iterator<Tag> |
getTags()
Creates a list of tags in the current 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()
Returns the first offset where the tags start in the Cell
|
long |
getTimestamp()
Return a long value representing time at which this cell was "Put" into the row.
|
byte |
getTypeByte()
Returns The byte representation of the KeyValue.TYPE of this cell: one of Put, Delete, etc
|
byte[] |
getValueArray()
Contiguous raw bytes that may start at any index in the containing array.
|
int |
getValueLength()
Returns Number of value bytes.
|
int |
getValueOffset()
Returns Array index of first value byte
|
private long |
heapOverhead() |
long |
heapSize()
Return the approximate 'exclusive deep size' of implementing object.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeepClone, getChunkId, getSerializedSize, getSerializedSize, write, writecheckForTagsLength, createCellprivate static final long FIXED_OVERHEAD
private long sequenceId
private long timestamp
CellWrapper(Cell cell)
public 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 valuepublic 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()
CellgetValueOffset in interface Cellpublic int getValueLength()
CellgetValueLength in interface Cellpublic byte[] getTagsArray()
ExtendedCellgetTagsArray in interface CellgetTagsArray in interface ExtendedCellpublic int getTagsOffset()
ExtendedCellgetTagsOffset in interface CellgetTagsOffset in interface ExtendedCellpublic int getTagsLength()
ExtendedCellgetTagsLength in interface CellgetTagsLength in interface ExtendedCellpublic byte[] getRowArray()
CellgetRowArray in interface Cellpublic int getRowOffset()
CellgetRowOffset in interface Cellpublic short getRowLength()
CellgetRowLength in interface Cellpublic byte[] getFamilyArray()
CellgetFamilyArray in interface Cellpublic int getFamilyOffset()
CellgetFamilyOffset in interface Cellpublic byte getFamilyLength()
CellgetFamilyLength in interface Cellpublic byte[] getQualifierArray()
CellgetQualifierArray in interface Cellpublic int getQualifierOffset()
CellgetQualifierOffset in interface Cellpublic int getQualifierLength()
CellgetQualifierLength in interface Cellpublic long getTimestamp()
CellgetTimestamp in interface Cellpublic byte getTypeByte()
ExtendedCellgetTypeByte in interface CellgetTypeByte in interface ExtendedCellpublic Optional<Tag> getTag(byte type)
RawCellpublic Iterator<Tag> getTags()
RawCellpublic byte[] cloneTags()
RawCellprivate long heapOverhead()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.