public class TypeCheckUtils extends Object
Constructor and Description |
---|
TypeCheckUtils() |
Modifier and Type | Method and Description |
---|---|
static ExprValidationResult |
assertNumericExpr(TypeInformation<?> dataType,
String caller) |
static ExprValidationResult |
assertOrderableExpr(TypeInformation<?> dataType,
String caller) |
static boolean |
isAdvanced(TypeInformation<?> dataType)
Checks if type information is an advanced type that can be converted to a
SQL type but NOT vice versa.
|
static boolean |
isBoolean(TypeInformation<?> dataType) |
static boolean |
isComparable(TypeInformation<?> dataType) |
static boolean |
isDecimal(TypeInformation<?> dataType) |
static boolean |
isNumeric(TypeInformation<?> dataType) |
static boolean |
isSimple(TypeInformation<?> dataType)
Checks if type information is a simple type that can be converted to a
SQL type and vice versa.
|
static boolean |
isString(TypeInformation<?> dataType) |
static boolean |
isTemporal(TypeInformation<?> dataType) |
public static boolean isAdvanced(TypeInformation<?> dataType)
public static boolean isSimple(TypeInformation<?> dataType)
public static boolean isNumeric(TypeInformation<?> dataType)
public static boolean isTemporal(TypeInformation<?> dataType)
public static boolean isString(TypeInformation<?> dataType)
public static boolean isBoolean(TypeInformation<?> dataType)
public static boolean isDecimal(TypeInformation<?> dataType)
public static boolean isComparable(TypeInformation<?> dataType)
public static ExprValidationResult assertNumericExpr(TypeInformation<?> dataType, String caller)
public static ExprValidationResult assertOrderableExpr(TypeInformation<?> dataType, String caller)
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.