private static class PrivateCellUtil.FirstOnRowByteBufferExtendedCell extends PrivateCellUtil.EmptyByteBufferExtendedCell
Modifier and Type | Field and Description |
---|---|
private static int |
FIXED_OVERHEAD |
private short |
rlength |
private int |
roffset |
private ByteBuffer |
rowBuff |
CELL_NOT_BASED_ON_CHUNK
MAX_TAGS_LENGTH
Constructor and Description |
---|
FirstOnRowByteBufferExtendedCell(ByteBuffer row,
int roffset,
short rlength) |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getRowByteBuffer()
Returns The
ByteBuffer containing the row bytes. |
short |
getRowLength()
Returns Number of row bytes.
|
int |
getRowPosition()
Returns Position in the
ByteBuffer where row 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
|
long |
heapSize()
Return the approximate 'exclusive deep size' of implementing object.
|
getFamilyArray, getFamilyByteBuffer, getFamilyLength, getFamilyOffset, getFamilyPosition, getQualifierArray, getQualifierByteBuffer, getQualifierLength, getQualifierOffset, getQualifierPosition, getRowArray, getRowOffset, getSequenceId, getTagsArray, getTagsByteBuffer, getTagsLength, getTagsOffset, getTagsPosition, getValueArray, getValueByteBuffer, getValueLength, getValueOffset, getValuePosition, setSequenceId, setTimestamp, setTimestamp
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deepClone, getChunkId, getSerializedSize, getSerializedSize, write, write
checkForTagsLength, cloneTags, createCell, getTag, getTags
private static final int FIXED_OVERHEAD
private final ByteBuffer rowBuff
private final int roffset
private final short rlength
public FirstOnRowByteBufferExtendedCell(ByteBuffer row, int roffset, short rlength)
public long heapSize()
HeapSize
public ByteBuffer getRowByteBuffer()
ByteBufferExtendedCell
ByteBuffer
containing the row bytes.getRowByteBuffer
in class PrivateCellUtil.EmptyByteBufferExtendedCell
public int getRowPosition()
ByteBufferExtendedCell
ByteBuffer
where row bytes startgetRowPosition
in class PrivateCellUtil.EmptyByteBufferExtendedCell
public short getRowLength()
Cell
getRowLength
in interface Cell
getRowLength
in class PrivateCellUtil.EmptyByteBufferExtendedCell
public long getTimestamp()
Cell
public byte getTypeByte()
ExtendedCell
public Cell.Type getType()
Cell
Cell.Type
. Note : This does not
expose the internal types of Cells like KeyValue.Type.Maximum
and
KeyValue.Type.Minimum
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.