@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 |
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, skip
public static final OrderedString ASCENDING
public static final OrderedString DESCENDING
protected OrderedString(Order order)
public int encodedLength(String val)
DataType
byte[]
will be.val
- The value to check.val
.apublic Class<String> encodedClass()
DataType
DataType
operates. Useful
when working with bare DataType
instances.public String decode(PositionedByteRange src)
DataType
T
from the buffer src
.src
- the buffer containing the encoded value.public int encode(PositionedByteRange dst, String val)
DataType
val
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.