Package org.apache.hadoop.hbase.types
Class OrderedBlobVar
java.lang.Object
org.apache.hadoop.hbase.types.OrderedBytesBase<byte[]>
org.apache.hadoop.hbase.types.OrderedBlobVar
- All Implemented Interfaces:
DataType<byte[]>
An alternative to
OrderedBlob for use by Struct fields that do not terminate the
fields list. Built on
OrderedBytes.encodeBlobVar(PositionedByteRange, byte[], int, int, Order).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OrderedBlobVarDeprecated.since 3.0.0 and will be removed in 4.0.0static final OrderedBlobVarDeprecated.since 3.0.0 and will be removed in 4.0.0Fields inherited from class org.apache.hadoop.hbase.types.OrderedBytesBase
order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Read an instance ofTfrom the buffersrc.intencode(PositionedByteRange dst, byte[] val) Write instancevalinto bufferdst.intencode(PositionedByteRange dst, byte[] val, int voff, int vlen) Write a subset ofvaltodst.Class<byte[]>Inform consumers over what type thisDataTypeoperates.intencodedLength(byte[] 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
-
OrderedBlobVar
-
-
Method Details
-
encodedLength
Description copied from interface:DataTypeInform 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:DataTypeInform consumers over what type thisDataTypeoperates. Useful when working with bareDataTypeinstances. -
decode
Description copied from interface:DataTypeRead an instance ofTfrom the buffersrc.- Parameters:
src- the buffer containing the encoded value.
-
encode
Description copied from interface:DataTypeWrite instancevalinto bufferdst.- Parameters:
dst- the buffer containing the encoded value.val- the value to encode ontodst.- Returns:
- number of bytes written.
-
encode
Write a subset ofvaltodst.- Parameters:
dst- thePositionedByteRangeto write toval- the value to write todstvoff- the offset indstwhere to writevaltovlen- the lenght ofval- Returns:
- the number of bytes written
-