@InterfaceAudience.Public public class OrderedBlobVar extends OrderedBytesBase<byte[]>
OrderedBlob for use by Struct fields that
do not terminate the fields list. Built on
OrderedBytes.encodeBlobVar(PositionedByteRange, byte[], int, int, Order).| Modifier and Type | Field and Description |
|---|---|
static OrderedBlobVar |
ASCENDING |
static OrderedBlobVar |
DESCENDING |
order| Modifier | Constructor and Description |
|---|---|
protected |
OrderedBlobVar(Order order) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decode(PositionedByteRange src)
Read an instance of
T from the buffer src. |
int |
encode(PositionedByteRange dst,
byte[] val)
Write instance
val into buffer dst. |
int |
encode(PositionedByteRange dst,
byte[] val,
int voff,
int vlen)
Write a subset of
val to buff. |
Class<byte[]> |
encodedClass()
Inform consumers over what type this
DataType operates. |
int |
encodedLength(byte[] val)
Inform consumers how long the encoded
byte[] will be. |
getOrder, isNullable, isOrderPreserving, isSkippable, skippublic static final OrderedBlobVar ASCENDING
public static final OrderedBlobVar DESCENDING
protected OrderedBlobVar(Order order)
public int encodedLength(byte[] val)
DataTypebyte[] will be.val - The value to check.val.apublic Class<byte[]> encodedClass()
DataTypeDataType operates. Useful
when working with bare DataType instances.public byte[] decode(PositionedByteRange src)
DataTypeT from the buffer src.src - the buffer containing the encoded value.public int encode(PositionedByteRange dst, byte[] val)
DataTypeval into buffer dst.dst - the buffer containing the encoded value.val - the value to encode onto dst.public int encode(PositionedByteRange dst, byte[] val, int voff, int vlen)
val to buff.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.