static class KeyOnlyFilter.KeyOnlyByteBufferExtendedCell extends ByteBufferExtendedCell
| Modifier and Type | Field and Description |
|---|---|
private ByteBufferExtendedCell |
cell |
static int |
FIXED_OVERHEAD |
private boolean |
lenAsVal |
CELL_NOT_BASED_ON_CHUNKMAX_TAGS_LENGTH| Constructor and Description |
|---|
KeyOnlyByteBufferExtendedCell(ByteBufferExtendedCell c,
boolean lenAsVal) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getFamilyArray()
Contiguous bytes composed of legal HDFS filename characters which may start at any index in the
containing array.
|
ByteBuffer |
getFamilyByteBuffer()
Returns The
ByteBuffer containing the column family bytes. |
byte |
getFamilyLength()
Returns Number of family bytes.
|
int |
getFamilyOffset()
Returns Array index of first family byte
|
int |
getFamilyPosition()
Returns Position in the
ByteBuffer where column family bytes start |
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array.
|
ByteBuffer |
getQualifierByteBuffer()
Returns The
ByteBuffer containing the column qualifier bytes. |
int |
getQualifierLength()
Returns Number of qualifier bytes.
|
int |
getQualifierOffset()
Returns Array index of first qualifier byte
|
int |
getQualifierPosition()
Returns Position in the
ByteBuffer where column qualifier bytes start |
byte[] |
getRowArray()
Contiguous raw bytes that may start at any index in the containing array.
|
ByteBuffer |
getRowByteBuffer()
Returns The
ByteBuffer containing the row bytes. |
short |
getRowLength()
Returns Number of row bytes.
|
int |
getRowOffset()
Returns Array index of first row byte
|
int |
getRowPosition()
Returns Position in the
ByteBuffer where row bytes start |
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.
|
ByteBuffer |
getTagsByteBuffer()
Returns The
ByteBuffer containing the tag bytes. |
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
|
int |
getTagsPosition()
Returns Position in the
ByteBuffer where tag bytes start |
long |
getTimestamp()
Return a long value representing time at which this cell was "Put" into the row.
|
Cell.Type |
getType()
Returns the type of cell in a human readable format using
Cell.Type. |
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.
|
ByteBuffer |
getValueByteBuffer()
Returns The
ByteBuffer containing the value bytes. |
int |
getValueLength()
Returns Number of value bytes.
|
int |
getValueOffset()
Returns Array index of first value byte
|
int |
getValuePosition()
Returns Position in the
ByteBuffer where value bytes start |
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, cloneTags, createCellpublic static final int FIXED_OVERHEAD
private ByteBufferExtendedCell cell
private boolean lenAsVal
public KeyOnlyByteBufferExtendedCell(ByteBufferExtendedCell c, boolean lenAsVal)
public byte[] getRowArray()
Cellpublic int getRowOffset()
Cellpublic short getRowLength()
Cellpublic byte[] getFamilyArray()
Cellpublic int getFamilyOffset()
Cellpublic byte getFamilyLength()
Cellpublic byte[] getQualifierArray()
Cellpublic int getQualifierOffset()
Cellpublic int getQualifierLength()
Cellpublic long getTimestamp()
Cellpublic byte getTypeByte()
ExtendedCellpublic void setSequenceId(long seqId) throws IOException
ExtendedCellseqId - sequence IDIOExceptionpublic void setTimestamp(long ts) throws IOException
ExtendedCellts - timestampIOExceptionpublic void setTimestamp(byte[] ts) throws IOException
ExtendedCellts - buffer containing the timestamp valueIOExceptionpublic 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.public Cell.Type getType()
CellCell.Type. Note : This does not
expose the internal types of Cells like KeyValue.Type.Maximum and
KeyValue.Type.Minimumpublic byte[] getValueArray()
Cellpublic int getValueOffset()
Cellpublic int getValueLength()
Cellpublic byte[] getTagsArray()
ExtendedCellpublic int getTagsOffset()
ExtendedCellpublic int getTagsLength()
ExtendedCellpublic ByteBuffer getRowByteBuffer()
ByteBufferExtendedCellByteBuffer containing the row bytes.getRowByteBuffer in class ByteBufferExtendedCellpublic int getRowPosition()
ByteBufferExtendedCellByteBuffer where row bytes startgetRowPosition in class ByteBufferExtendedCellpublic ByteBuffer getFamilyByteBuffer()
ByteBufferExtendedCellByteBuffer containing the column family bytes.getFamilyByteBuffer in class ByteBufferExtendedCellpublic int getFamilyPosition()
ByteBufferExtendedCellByteBuffer where column family bytes startgetFamilyPosition in class ByteBufferExtendedCellpublic ByteBuffer getQualifierByteBuffer()
ByteBufferExtendedCellByteBuffer containing the column qualifier bytes.getQualifierByteBuffer in class ByteBufferExtendedCellpublic int getQualifierPosition()
ByteBufferExtendedCellByteBuffer where column qualifier bytes startgetQualifierPosition in class ByteBufferExtendedCellpublic ByteBuffer getValueByteBuffer()
ByteBufferExtendedCellByteBuffer containing the value bytes.getValueByteBuffer in class ByteBufferExtendedCellpublic int getValuePosition()
ByteBufferExtendedCellByteBuffer where value bytes startgetValuePosition in class ByteBufferExtendedCellpublic ByteBuffer getTagsByteBuffer()
ByteBufferExtendedCellByteBuffer containing the tag bytes.getTagsByteBuffer in class ByteBufferExtendedCellpublic int getTagsPosition()
ByteBufferExtendedCellByteBuffer where tag bytes startgetTagsPosition in class ByteBufferExtendedCellpublic Iterator<Tag> getTags()
RawCellpublic Optional<Tag> getTag(byte type)
RawCelltype - the type of the tagCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.