@Internal public final class PythonTypeUtils extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
PythonTypeUtils.LogicalTypeToProtoTypeConverter
Converter That convert the logicalType to the related Prototype.
|
| 构造器和说明 |
|---|
PythonTypeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
dateToInternal(Date date)
Converts the Java type used for UDF parameters of SQL DATE type (
Date) to
internal representation (int). |
static BigDecimal |
fromBigDecimal(BigDecimal bigDecimal,
int precision,
int scale)
Convert the specified bigDecimal according to the specified precision and scale.
|
static Date |
internalToDate(int v)
Converts the internal representation of a SQL DATE (int) to the Java type used for UDF
parameters (
Date). |
static long |
timestampToInternal(Timestamp ts)
Converts the Java type used for UDF parameters of SQL TIMESTAMP type (
Timestamp) to internal representation (long). |
static org.apache.flink.api.common.typeutils.TypeSerializer |
toInternalSerializer(org.apache.flink.table.types.logical.LogicalType logicalType) |
static FlinkFnApi.Schema.FieldType |
toProtoType(org.apache.flink.table.types.logical.LogicalType logicalType) |
public static FlinkFnApi.Schema.FieldType toProtoType(org.apache.flink.table.types.logical.LogicalType logicalType)
public static org.apache.flink.api.common.typeutils.TypeSerializer toInternalSerializer(org.apache.flink.table.types.logical.LogicalType logicalType)
public static BigDecimal fromBigDecimal(BigDecimal bigDecimal, int precision, int scale)
Note: The implementation refers to DecimalData.fromBigDecimal(java.math.BigDecimal, int, int).
public static Date internalToDate(int v)
Date).
Note: The implementation refers to SqlDateTimeUtils.internalToDate(int).
public static int dateToInternal(Date date)
Date) to
internal representation (int).
Note: The implementation refers to SqlDateTimeUtils.dateToInternal(java.sql.Date).
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.