Package org.apache.hadoop.hbase
Class ByteBufferTag
java.lang.Object
org.apache.hadoop.hbase.ByteBufferTag
- All Implemented Interfaces:
Tag
This is a
Tag implementation in which value is backed by ByteBuffer-
Field Summary
FieldsFields inherited from interface org.apache.hadoop.hbase.Tag
CUSTOM_TAG_TYPE_RANGE, INFRASTRUCTURE_SIZE, MAX_TAG_LENGTH, TAG_LENGTH_SIZE, TYPE_LENGTH_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbytegetType()Returns the tag typebyte[]Return an array containing the value bytes ifTag.hasArray()returns true.Returns TheByteBuffercontaining the value bytes.intReturns Length of tag value within the backed bufferintReturns Offset of tag value within the backed bufferbooleanhasArray()Return true if the tag is backed by a byte arraytoString()
-
Field Details
-
buffer
-
offset
-
length
-
type
-
-
Constructor Details
-
ByteBufferTag
-
-
Method Details
-
getType
Description copied from interface:TagReturns the tag type -
getValueOffset
Description copied from interface:TagReturns Offset of tag value within the backed buffer- Specified by:
getValueOffsetin interfaceTag
-
getValueLength
Description copied from interface:TagReturns Length of tag value within the backed buffer- Specified by:
getValueLengthin interfaceTag
-
hasArray
Description copied from interface:TagReturn true if the tag is backed by a byte array -
getValueArray
Description copied from interface:TagReturn an array containing the value bytes ifTag.hasArray()returns true.Use
Tag.getValueByteBuffer()otherwise.- Specified by:
getValueArrayin interfaceTag
-
getValueByteBuffer
Description copied from interface:TagReturns TheByteBuffercontaining the value bytes.- Specified by:
getValueByteBufferin interfaceTag
-
toString
-