public class DataTypeUtils extends Object
DataType.| Constructor and Description |
|---|
DataTypeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isDatetimeType(org.apache.flink.table.types.DataType type)
Returns whether the given type is DATETIME type.
|
static boolean |
isDateType(org.apache.flink.table.types.DataType type)
Returns whether the given type is DATE type.
|
static boolean |
isFamily(org.apache.flink.table.types.logical.LogicalType logicalType,
org.apache.flink.table.types.logical.LogicalTypeFamily family)
Returns whether the given logical type belongs to the family.
|
static boolean |
isTimestampType(org.apache.flink.table.types.DataType type)
Returns whether the given type is TIMESTAMP type.
|
static int |
precision(org.apache.flink.table.types.logical.LogicalType logicalType)
Returns the precision of the given TIMESTAMP type.
|
static org.apache.flink.table.types.logical.RowType.RowField[] |
projectRowFields(org.apache.flink.table.types.logical.RowType rowType,
String[] names)
Projects the row fields with given names.
|
static Object |
resolvePartition(String partition,
org.apache.flink.table.types.DataType type)
Resolves the partition path string into value obj with given data type.
|
public static boolean isTimestampType(org.apache.flink.table.types.DataType type)
public static int precision(org.apache.flink.table.types.logical.LogicalType logicalType)
public static boolean isDateType(org.apache.flink.table.types.DataType type)
public static boolean isDatetimeType(org.apache.flink.table.types.DataType type)
public static org.apache.flink.table.types.logical.RowType.RowField[] projectRowFields(org.apache.flink.table.types.logical.RowType rowType,
String[] names)
public static boolean isFamily(org.apache.flink.table.types.logical.LogicalType logicalType,
org.apache.flink.table.types.logical.LogicalTypeFamily family)
Copyright © 2022 The Apache Software Foundation. All rights reserved.