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 ofCharType
andVarCharType
.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static StringData
fromBytes(byte[] bytes)
Creates an instance ofStringData
from the given UTF-8 byte array.static StringData
fromBytes(byte[] bytes, int offset, int numBytes)
Creates an instance ofStringData
from the given UTF-8 byte array with offset and number of bytes.static StringData
fromString(String str)
Creates an instance ofStringData
from the givenString
.byte[]
toBytes()
Converts thisStringData
object to a UTF-8 byte array.String
toString()
Converts thisStringData
object to aString
.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Method Detail
-
toBytes
byte[] toBytes()
Converts thisStringData
object to a UTF-8 byte array.Note: The returned byte array may be reused.
-
toString
String toString()
Converts thisStringData
object to aString
.
-
fromString
static StringData fromString(String str)
Creates an instance ofStringData
from the givenString
.
-
fromBytes
static StringData fromBytes(byte[] bytes)
Creates an instance ofStringData
from the given UTF-8 byte array.
-
fromBytes
static StringData fromBytes(byte[] bytes, int offset, int numBytes)
Creates an instance ofStringData
from the given UTF-8 byte array with offset and number of bytes.
-
-