@InterfaceAudience.Public 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
Deprecated.
since 3.0.0 and will be removed in 4.0.0
|
static OrderedString |
DESCENDING
Deprecated.
since 3.0.0 and will be removed in 4.0.0
|
order| Constructor and Description |
|---|
OrderedString(Order order)
Creates a new variable-length
String. |
| 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, skip@Deprecated public static final OrderedString ASCENDING
@Deprecated public static final OrderedString DESCENDING
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–2020 The Apache Software Foundation. All rights reserved.