Package org.apache.flink.table.data
Interface StringData
-
- All Superinterfaces:
Comparable<StringData>
- All Known Implementing Classes:
BinaryStringData
@PublicEvolving public interface StringData extends Comparable<StringData>
An internal data structure representing data ofCharTypeandVarCharType.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static StringDatafromBytes(byte[] bytes)Creates an instance ofStringDatafrom the given UTF-8 byte array.static StringDatafromBytes(byte[] bytes, int offset, int numBytes)Creates an instance ofStringDatafrom the given UTF-8 byte array with offset and number of bytes.static StringDatafromString(String str)Creates an instance ofStringDatafrom the givenString.byte[]toBytes()Converts thisStringDataobject to a UTF-8 byte array.StringtoString()Converts thisStringDataobject to aString.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
toBytes
byte[] toBytes()
Converts thisStringDataobject to a UTF-8 byte array.Note: The returned byte array may be reused.
-
toString
String toString()
Converts thisStringDataobject to aString.
-
fromString
static StringData fromString(String str)
Creates an instance ofStringDatafrom the givenString.
-
fromBytes
static StringData fromBytes(byte[] bytes)
Creates an instance ofStringDatafrom the given UTF-8 byte array.
-
fromBytes
static StringData fromBytes(byte[] bytes, int offset, int numBytes)
Creates an instance ofStringDatafrom the given UTF-8 byte array with offset and number of bytes.
-
-