public class PlannerTypeUtils extends Object
LogicalType and DataType..| 构造器和说明 |
|---|
PlannerTypeUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
getArity(org.apache.flink.table.types.logical.LogicalType t)
Gets the arity of the type.
|
static boolean |
isAssignable(org.apache.flink.table.types.logical.LogicalType t1,
org.apache.flink.table.types.logical.LogicalType t2)
Now in the conversion to the TypeInformation from DataType, type may loose some information
about nullable and precision.
|
static boolean |
isInteroperable(org.apache.flink.table.types.logical.LogicalType t1,
org.apache.flink.table.types.logical.LogicalType t2)
Can the two types operate with each other.
|
static boolean |
isPrimitive(org.apache.flink.table.types.logical.LogicalType type) |
static boolean |
isPrimitive(org.apache.flink.table.types.logical.LogicalTypeRoot root) |
static org.apache.flink.table.types.logical.LogicalType |
removeLegacyTypes(org.apache.flink.table.types.logical.LogicalType t)
A conversion that removes all
LegacyTypeInformationTypes by mapping to corresponding new types. |
static org.apache.flink.table.types.logical.RowType |
toRowType(org.apache.flink.table.types.logical.LogicalType t) |
public static int getArity(org.apache.flink.table.types.logical.LogicalType t)
public static org.apache.flink.table.types.logical.RowType toRowType(org.apache.flink.table.types.logical.LogicalType t)
public static org.apache.flink.table.types.logical.LogicalType removeLegacyTypes(org.apache.flink.table.types.logical.LogicalType t)
LegacyTypeInformationTypes by mapping to corresponding new types.public static boolean isPrimitive(org.apache.flink.table.types.logical.LogicalType type)
public static boolean isPrimitive(org.apache.flink.table.types.logical.LogicalTypeRoot root)
public static boolean isInteroperable(org.apache.flink.table.types.logical.LogicalType t1,
org.apache.flink.table.types.logical.LogicalType t2)
public static boolean isAssignable(org.apache.flink.table.types.logical.LogicalType t1,
org.apache.flink.table.types.logical.LogicalType t2)
The difference of isInteroperable(org.apache.flink.table.types.logical.LogicalType, org.apache.flink.table.types.logical.LogicalType) is ignore precisions.
Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.