@Internal public class OperationExpressionsUtils extends Object
Expression
to use them in QueryOperation
s.
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<Expression> expressions)
Extracts and deduplicates all aggregation and window property expressions (zero, one, or
more) from the given expressions.
|
static Optional<String> |
extractName(Expression expression)
Extracts name from given expression if it has one.
|
static List<Optional<String>> |
extractNames(List<ResolvedExpression> expressions)
Extracts names from given expressions if they have one.
|
public static OperationExpressionsUtils.CategorizedExpressions extractAggregationsAndProperties(List<Expression> expressions)
expressions
- a list of expressions to extractpublic static List<Optional<String>> extractNames(List<ResolvedExpression> expressions)
expressions
- list of expressions to extract names frompublic static Optional<String> extractName(Expression expression)
expression
- expression to extract name fromCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.