@PublicEvolving public interface StringData extends Comparable<StringData>
CharType and VarCharType.| 限定符和类型 | 方法和说明 |
|---|---|
static StringData |
fromBytes(byte[] bytes)
Creates an instance of
StringData from the given UTF-8 byte array. |
static StringData |
fromBytes(byte[] bytes,
int offset,
int numBytes)
Creates an instance of
StringData from the given UTF-8 byte array with offset and
number of bytes. |
static StringData |
fromString(String str)
Creates an instance of
StringData from the given String. |
byte[] |
toBytes()
Converts this
StringData object to a UTF-8 byte array. |
String |
toString()
Converts this
StringData object to a String. |
compareTobyte[] toBytes()
StringData object to a UTF-8 byte array.
Note: The returned byte array may be reused.
String toString()
StringData object to a String.static StringData fromString(String str)
StringData from the given String.static StringData fromBytes(byte[] bytes)
StringData from the given UTF-8 byte array.static StringData fromBytes(byte[] bytes, int offset, int numBytes)
StringData from the given UTF-8 byte array with offset and
number of bytes.Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.