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
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionbyte
getType()
Returns the tag typebyte[]
Return an array containing the value bytes ifTag.hasArray()
returns true.Returns TheByteBuffer
containing the value bytes.int
Returns Length of tag value within the backed bufferint
Returns Offset of tag value within the backed bufferboolean
hasArray()
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:Tag
Returns the tag type -
getValueOffset
Description copied from interface:Tag
Returns Offset of tag value within the backed buffer- Specified by:
getValueOffset
in interfaceTag
-
getValueLength
Description copied from interface:Tag
Returns Length of tag value within the backed buffer- Specified by:
getValueLength
in interfaceTag
-
hasArray
Description copied from interface:Tag
Return true if the tag is backed by a byte array -
getValueArray
Description copied from interface:Tag
Return an array containing the value bytes ifTag.hasArray()
returns true.Use
Tag.getValueByteBuffer()
otherwise.- Specified by:
getValueArray
in interfaceTag
-
getValueByteBuffer
Description copied from interface:Tag
Returns TheByteBuffer
containing the value bytes.- Specified by:
getValueByteBuffer
in interfaceTag
-
toString
-