Package org.apache.hadoop.hbase.types
Class OrderedString
A
String
of variable-length. Built on
OrderedBytes.encodeString(PositionedByteRange, String, Order)
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final OrderedString
Deprecated.since 3.0.0 and will be removed in 4.0.0static final OrderedString
Deprecated.since 3.0.0 and will be removed in 4.0.0Fields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase
order
-
Constructor Summary
-
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
Deprecated.since 3.0.0 and will be removed in 4.0.0 -
DESCENDING
Deprecated.since 3.0.0 and will be removed in 4.0.0
-
-
Constructor Details
-
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.
-