public class TypeUtils extends Object
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static Object |
castFromCdcValueString(String s,
DataType type) |
static Object |
castFromString(String s,
DataType type) |
static Object |
castFromStringInternal(String s,
DataType type,
boolean isCdcValue) |
static RowType |
concat(RowType left,
RowType right) |
static boolean |
isBasicType(Object obj) |
static boolean |
isInteroperable(DataType t1,
DataType t2)
Can the two types operate with each other.
|
static boolean |
isPrimitive(DataType type) |
static boolean |
isPrimitive(DataTypeRoot root) |
static RowType |
project(RowType inputType,
int[] mapping) |
static RowType |
project(RowType inputType,
List<String> names) |
public static Object castFromStringInternal(String s, DataType type, boolean isCdcValue)
public static boolean isPrimitive(DataType type)
public static boolean isPrimitive(DataTypeRoot root)
public static boolean isInteroperable(DataType t1, DataType t2)
public static boolean isBasicType(Object obj)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.