@InterfaceAudience.Public public class RawBytesFixedLength extends FixedLengthWrapper<byte[]>
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.base, length| Constructor and Description |
|---|
RawBytesFixedLength(int length)
Create a
RawBytesFixedLength of the specified length. |
RawBytesFixedLength(Order order,
int length)
Create a
RawBytesFixedLength using the specified order
and length. |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(PositionedByteRange src,
int length)
Read a
byte[] from the buffer src. |
int |
encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write
val into buff, respecting offset and
length. |
decode, encode, encodedClass, encodedLength, getLength, getOrder, isNullable, isOrderPreserving, isSkippable, skippublic RawBytesFixedLength(Order order, int length)
RawBytesFixedLength using the specified order
and length.public RawBytesFixedLength(int length)
RawBytesFixedLength of the specified length.public byte[] decode(PositionedByteRange src, int length)
byte[] from the buffer src.public int encode(PositionedByteRange dst, byte[] val, int voff, int vlen)
val into buff, respecting offset and
length.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.