Package org.apache.hadoop.hbase.types
Class RawBytesFixedLength
java.lang.Object
org.apache.hadoop.hbase.types.FixedLengthWrapper<byte[]>
org.apache.hadoop.hbase.types.RawBytesFixedLength
- All Implemented Interfaces:
DataType<byte[]>
An
DataType
that encodes fixed-length values encoded using
Bytes.putBytes(byte[], int, byte[], int, int)
. Intended to
make it easier to transition away from direct use of Bytes
.-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.types.FixedLengthWrapper
base, length
-
Constructor Summary
ConstructorDescriptionRawBytesFixedLength
(int length) Create aRawBytesFixedLength
of the specifiedlength
.RawBytesFixedLength
(Order order, int length) Create aRawBytesFixedLength
using the specifiedorder
andlength
. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
decode
(PositionedByteRange src, int length) Read abyte[]
from the buffersrc
.int
encode
(PositionedByteRange dst, byte[] val, int voff, int vlen) Writeval
intobuff
, respectingoffset
andlength
.Methods inherited from class org.apache.hadoop.hbase.types.FixedLengthWrapper
decode, encode, encodedClass, encodedLength, getLength, getOrder, isNullable, isOrderPreserving, isSkippable, skip
-
Constructor Details
-
RawBytesFixedLength
Create aRawBytesFixedLength
using the specifiedorder
andlength
. -
RawBytesFixedLength
Create aRawBytesFixedLength
of the specifiedlength
.
-
-
Method Details
-
decode
Read abyte[]
from the buffersrc
. -
encode
Writeval
intobuff
, respectingoffset
andlength
.
-