@Deprecated public class TypeInfoLogicalTypeConverter extends Object
TypeInformation
and LogicalType
.
This class is for: 1.Source, Sink. 2.UDF, UDTF. 3.Agg, AggFunctions, Expression, DataView.
Constructor and Description |
---|
TypeInfoLogicalTypeConverter()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static TypeInformation |
fromLogicalTypeToTypeInfo(LogicalType type)
Deprecated.
Use
BigDecimalTypeInfo to retain precision and scale of decimal. |
static LogicalType |
fromTypeInfoToLogicalType(TypeInformation typeInfo)
Deprecated.
It will lose some information.
|
public static LogicalType fromTypeInfoToLogicalType(TypeInformation typeInfo)
PojoTypeInfo
will converted to RowType
)
It and fromLogicalTypeToTypeInfo(org.apache.flink.table.types.logical.LogicalType)
not allows
back-and-forth conversion.public static TypeInformation fromLogicalTypeToTypeInfo(LogicalType type)
BigDecimalTypeInfo
to retain precision and scale of decimal.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.