Package org.apache.hadoop.hbase.types
Class OrderedString
A
String
of variable-length. Built on
OrderedBytes.encodeString(PositionedByteRange, String, Order)
.-
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase
order
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRead an instance ofT
from the buffersrc
.int
encode
(PositionedByteRange dst, String val) Write instanceval
into bufferdst
.Inform consumers over what type thisDataType
operates.int
encodedLength
(String val) Inform consumers how long the encodedbyte[]
will be.Methods inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase
getOrder, isNullable, isOrderPreserving, isSkippable, skip
-
Field Details
-
ASCENDING
-
DESCENDING
-
-
Constructor Details
-
OrderedString
-
-
Method Details
-
encodedLength
Description copied from interface:DataType
Inform consumers how long the encodedbyte[]
will be.- Parameters:
val
- The value to check.- Returns:
- the number of bytes required to encode
val
.a
-
encodedClass
Description copied from interface:DataType
Inform consumers over what type thisDataType
operates. Useful when working with bareDataType
instances. -
decode
Description copied from interface:DataType
Read an instance ofT
from the buffersrc
.- Parameters:
src
- the buffer containing the encoded value.
-
encode
Description copied from interface:DataType
Write instanceval
into bufferdst
.- Parameters:
dst
- the buffer containing the encoded value.val
- the value to encode ontodst
.- Returns:
- number of bytes written.
-