@InterfaceAudience.Public public class OrderedBlob extends OrderedBytesBase<byte[]>
byte[] of variable-length. Build on
OrderedBytes.encodeBlobCopy(PositionedByteRange, byte[], int, int, Order).| Modifier and Type | Field and Description |
|---|---|
static OrderedBlob |
ASCENDING |
static OrderedBlob |
DESCENDING |
order| Modifier | Constructor and Description |
|---|---|
protected |
OrderedBlob(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 dst. |
Class<byte[]> |
encodedClass()
Inform consumers over what type this
DataType operates. |
int |
encodedLength(byte[] val)
Inform consumers how long the encoded
byte[] will be. |
boolean |
isSkippable()
Indicates whether this instance is able to skip over it's encoded value.
|
getOrder, isNullable, isOrderPreserving, skippublic static final OrderedBlob ASCENDING
public static final OrderedBlob DESCENDING
protected OrderedBlob(Order order)
public boolean isSkippable()
DataTypeDataTypes that are not skippable can only be used as the
right-most field of a Struct.isSkippable in interface DataType<byte[]>isSkippable in class OrderedBytesBase<byte[]>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 dst.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.