Package io.trino.testing.datatype
Class DataType<T>
java.lang.Object
io.trino.testing.datatype.DataType<T>
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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) timeDataType(int precision) static DataType<LocalDateTime> Deprecated.UsetimestampDataType(int)instead.static DataType<LocalDateTime> timestampDataType(int precision) static DataType<ZonedDateTime> timestampWithTimeZoneDataType(int precision) toTrinoLiteral(T inputValue) toTrinoQueryResult(T inputValue)
-
Method Details
-
booleanDataType
-
integerDataType
-
realDataType
-
doubleDataType
-
decimalDataType
-
dateDataType
-
timeDataType
-
timestampDataType
Deprecated.UsetimestampDataType(int)instead. -
timestampDataType
-
timestampWithTimeZoneDataType
-
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.