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