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
ConstructorsConstructorDescriptionRawBytesFixedLength(int length) Create aRawBytesFixedLengthof the specifiedlength.RawBytesFixedLength(Order order, int length) Create aRawBytesFixedLengthusing the specifiedorderandlength. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]decode(PositionedByteRange src, int length) Read abyte[]from the buffersrc.intencode(PositionedByteRange dst, byte[] val, int voff, int vlen) Writevalintobuff, respectingoffsetandlength.Methods inherited from class org.apache.hadoop.hbase.types.FixedLengthWrapper
decode, encode, encodedClass, encodedLength, getLength, getOrder, isNullable, isOrderPreserving, isSkippable, skip
-
Constructor Details
-
RawBytesFixedLength
Create aRawBytesFixedLengthusing the specifiedorderandlength. -
RawBytesFixedLength
Create aRawBytesFixedLengthof the specifiedlength.
-
-
Method Details
-
decode
Read abyte[]from the buffersrc. -
encode
Writevalintobuff, respectingoffsetandlength.
-