private abstract static class PrivateCellUtil.EmptyByteBufferExtendedCell extends ByteBufferExtendedCell
CELL_NOT_BASED_ON_CHUNK
MAX_TAGS_LENGTH
Modifier | Constructor and Description |
---|---|
private |
EmptyByteBufferExtendedCell() |
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() |
byte |
getFamilyLength() |
int |
getFamilyOffset() |
int |
getFamilyPosition() |
byte[] |
getQualifierArray()
Contiguous raw bytes that may start at any index in the containing array.
|
ByteBuffer |
getQualifierByteBuffer() |
int |
getQualifierLength() |
int |
getQualifierOffset() |
int |
getQualifierPosition() |
byte[] |
getRowArray()
Contiguous raw bytes that may start at any index in the containing array.
|
ByteBuffer |
getRowByteBuffer() |
short |
getRowLength() |
int |
getRowOffset() |
int |
getRowPosition() |
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.
|
ByteBuffer |
getTagsByteBuffer() |
int |
getTagsLength()
HBase internally uses 2 bytes to store tags length in Cell.
|
int |
getTagsOffset() |
int |
getTagsPosition() |
byte[] |
getValueArray()
Contiguous raw bytes that may start at any index in the containing array.
|
ByteBuffer |
getValueByteBuffer() |
int |
getValueLength() |
int |
getValueOffset() |
int |
getValuePosition() |
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, wait
deepClone, getChunkId, getSerializedSize, getSerializedSize, getTypeByte, write, write
checkForTagsLength, cloneTags, getTag, getTags
getTimestamp, getType
private EmptyByteBufferExtendedCell()
public void setSequenceId(long seqId)
ExtendedCell
seqId
- sequence IDpublic void setTimestamp(long ts)
ExtendedCell
ts
- timestamppublic void setTimestamp(byte[] ts)
ExtendedCell
ts
- buffer containing the timestamp valuepublic byte[] getRowArray()
Cell
public int getRowOffset()
public short getRowLength()
public byte[] getFamilyArray()
Cell
public int getFamilyOffset()
public byte getFamilyLength()
public byte[] getQualifierArray()
Cell
public int getQualifierOffset()
public int getQualifierLength()
public long getSequenceId()
ExtendedCell
HConstants.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 byte[] getValueArray()
Cell
public int getValueOffset()
public int getValueLength()
public byte[] getTagsArray()
ExtendedCell
public int getTagsOffset()
public int getTagsLength()
ExtendedCell
public ByteBuffer getRowByteBuffer()
getRowByteBuffer
in class ByteBufferExtendedCell
ByteBuffer
containing the row bytes.public int getRowPosition()
getRowPosition
in class ByteBufferExtendedCell
ByteBuffer
where row bytes startpublic ByteBuffer getFamilyByteBuffer()
getFamilyByteBuffer
in class ByteBufferExtendedCell
ByteBuffer
containing the column family bytes.public int getFamilyPosition()
getFamilyPosition
in class ByteBufferExtendedCell
ByteBuffer
where column family bytes startpublic ByteBuffer getQualifierByteBuffer()
getQualifierByteBuffer
in class ByteBufferExtendedCell
ByteBuffer
containing the column qualifier bytes.public int getQualifierPosition()
getQualifierPosition
in class ByteBufferExtendedCell
ByteBuffer
where column qualifier bytes startpublic ByteBuffer getTagsByteBuffer()
getTagsByteBuffer
in class ByteBufferExtendedCell
ByteBuffer
containing the tag bytes.public int getTagsPosition()
getTagsPosition
in class ByteBufferExtendedCell
ByteBuffer
where tag bytes startpublic ByteBuffer getValueByteBuffer()
getValueByteBuffer
in class ByteBufferExtendedCell
ByteBuffer
containing the value bytes.public int getValuePosition()
getValuePosition
in class ByteBufferExtendedCell
ByteBuffer
where value bytes startCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.