Package io.trino.testing.datatype
Class DataType<T>
java.lang.Object
io.trino.testing.datatype.DataType<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbinaryLiteral(byte[] value) Formats bytes using SQL standard format for binary string literalcharDataType(int length) charDataType(int length, String properties) charDataType(String insertType, int length) static <T> DataType<T>static <T> DataType<T>dataType(String insertType, Type trinoResultType, Function<T, String> toLiteral, Function<T, ?> toTrinoQueryResult) Deprecated.static <T> DataType<T>dataType(String insertType, Type trinoResultType, Function<T, String> toLiteral, Function<T, String> toTrinoLiteral, Function<T, ?> toTrinoQueryResult) Deprecated.toTrinoQueryResultconcept is deprecated.static DataType<BigDecimal>decimalDataType(int precision, int scale) static StringformatStringLiteral(String value) stringDataType(String insertType, Type trinoResultType) timeDataType(int precision) static DataType<LocalDateTime>Deprecated.UsetimestampDataType(int)instead.static DataType<LocalDateTime>timestampDataType(int precision) static DataType<ZonedDateTime>timestampWithTimeZoneDataType(int precision) static DataType<OffsetTime>timeWithTimeZoneDataType(int precision) toTrinoLiteral(T inputValue) toTrinoQueryResult(T inputValue) static DataType<byte[]>varcharDataType(int size) varcharDataType(int size, String properties)
-
Method Details
-
booleanDataType
-
bigintDataType
-
integerDataType
-
smallintDataType
-
tinyintDataType
-
realDataType
-
doubleDataType
-
varcharDataType
-
varcharDataType
-
varcharDataType
-
stringDataType
-
charDataType
-
charDataType
-
charDataType
-
varbinaryDataType
-
decimalDataType
-
dateDataType
-
timeDataType
-
timeWithTimeZoneDataType
-
timestampDataType
Deprecated.UsetimestampDataType(int)instead. -
timestampDataType
-
timestampWithTimeZoneDataType
-
jsonDataType
-
formatStringLiteral
-
binaryLiteral
Formats bytes using SQL standard format for binary string literal -
dataType
-
dataType
@Deprecated public static <T> DataType<T> dataType(String insertType, Type trinoResultType, Function<T, String> toLiteral, Function<T, ?> toTrinoQueryResult) Deprecated.toTrinoQueryResultconcept is deprecated. UseSqlDataTypeTestinstead. -
dataType
@Deprecated public static <T> DataType<T> dataType(String insertType, Type trinoResultType, Function<T, String> toLiteral, Function<T, String> toTrinoLiteral, Function<T, ?> toTrinoQueryResult) Deprecated.toTrinoQueryResultconcept is deprecated. UseSqlDataTypeTestinstead. -
toLiteral
-
toTrinoLiteral
-
toTrinoQueryResult
-
getInsertType
-
getTrinoResultType
-
toTrinoQueryResultconcept is deprecated.