public class ExpressionUtils extends Object
| Constructor and Description |
|---|
ExpressionUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getValueFromLiteral(org.apache.flink.table.expressions.ValueLiteralExpression expr)
Returns the value with given value literal expression.
|
static boolean |
isSimpleCallExpression(org.apache.flink.table.expressions.Expression expr)
Returns whether the given expression is simple call expression:
a binary call with one operand as field reference and another operand
as literal.
|
static String[] |
referencedColumns(List<org.apache.flink.table.expressions.ResolvedExpression> exprs)
Collect the referenced columns with given expressions,
only simple call expression is supported.
|
public static String[] referencedColumns(List<org.apache.flink.table.expressions.ResolvedExpression> exprs)
public static boolean isSimpleCallExpression(org.apache.flink.table.expressions.Expression expr)
@Nullable public static Object getValueFromLiteral(org.apache.flink.table.expressions.ValueLiteralExpression expr)
Returns null if the value can not parse as the output data type correctly,
should call ValueLiteralExpression.isNull first to decide whether
the literal is NULL.
Copyright © 2022 The Apache Software Foundation. All rights reserved.