@Internal public class OperationExpressionsUtils extends Object
Expression to use them in QueryOperations.
Note: Some of these utilities are intended to be used before expressions are fully resolved and some afterwards.
| Modifier and Type | Class and Description |
|---|---|
static class |
OperationExpressionsUtils.CategorizedExpressions
Container for extracted expressions of the same family.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationExpressionsUtils.CategorizedExpressions |
extractAggregationsAndProperties(List<org.apache.flink.table.expressions.Expression> expressions)
Extracts and deduplicates all aggregation and window property expressions (zero, one, or
more) from the given expressions.
|
static Optional<String> |
extractName(org.apache.flink.table.expressions.Expression expression)
Extracts name from given expression if it has one.
|
static List<Optional<String>> |
extractNames(List<org.apache.flink.table.expressions.ResolvedExpression> expressions)
Extracts names from given expressions if they have one.
|
public static OperationExpressionsUtils.CategorizedExpressions extractAggregationsAndProperties(List<org.apache.flink.table.expressions.Expression> expressions)
expressions - a list of expressions to extractpublic static List<Optional<String>> extractNames(List<org.apache.flink.table.expressions.ResolvedExpression> expressions)
FieldReferenceExpression
TableReferenceExpression
LocalReferenceExpression
BuiltInFunctionDefinitions.AS
expressions - list of expressions to extract names frompublic static Optional<String> extractName(org.apache.flink.table.expressions.Expression expression)
FieldReferenceExpression
TableReferenceExpression
LocalReferenceExpression
BuiltInFunctionDefinitions.AS
expression - expression to extract name fromCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.