public class PlannerTypeUtils extends Object
LogicalType
and DataType
..Constructor and Description |
---|
PlannerTypeUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getArity(LogicalType t)
Gets the arity of the type.
|
static boolean |
isAssignable(LogicalType t1,
LogicalType t2)
Now in the conversion to the TypeInformation from DataType, type may loose some information
about nullable and precision.
|
static boolean |
isInteroperable(LogicalType t1,
LogicalType t2)
Can the two types operate with each other.
|
static boolean |
isPrimitive(LogicalType type) |
static boolean |
isPrimitive(LogicalTypeRoot root) |
static RowType |
toRowType(LogicalType t) |
public static int getArity(LogicalType t)
public static RowType toRowType(LogicalType t)
public static boolean isPrimitive(LogicalType type)
public static boolean isPrimitive(LogicalTypeRoot root)
public static boolean isInteroperable(LogicalType t1, LogicalType t2)
public static boolean isAssignable(LogicalType t1, 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.