@PublicEvolving public class AggregateExpression extends Object implements ResolvedExpression
A aggregate call contains:
FunctionDefinition that identifies the function to be called
FieldReferenceExpression represents the arguments for aggregate function.
CallExpression represents the filter with the aggregate function.
DataType represents the result data type of aggregate function.
distinct indicates whether this is a distinct aggregate function.
approximate indicates whether this is a approximate aggregate function.
ignoreNulls indicates whether this aggregate function ignore null value.
| Constructor and Description |
|---|
AggregateExpression(FunctionDefinition functionDefinition,
List<FieldReferenceExpression> args,
CallExpression filterExpression,
DataType resultType,
boolean distinct,
boolean approximate,
boolean ignoreNulls) |
| Modifier and Type | Method and Description |
|---|---|
<R> R |
accept(ExpressionVisitor<R> visitor) |
String |
asSummaryString()
Returns a string that summarizes this expression for printing to a console.
|
boolean |
equals(Object o) |
List<FieldReferenceExpression> |
getArgs() |
List<Expression> |
getChildren() |
Optional<CallExpression> |
getFilterExpression() |
FunctionDefinition |
getFunctionDefinition() |
DataType |
getOutputDataType()
Returns the data type of the computation result.
|
List<ResolvedExpression> |
getResolvedChildren() |
int |
hashCode() |
boolean |
isApproximate() |
boolean |
isDistinct() |
boolean |
isIgnoreNulls() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasSerializableStringpublic AggregateExpression(FunctionDefinition functionDefinition, List<FieldReferenceExpression> args, @Nullable CallExpression filterExpression, DataType resultType, boolean distinct, boolean approximate, boolean ignoreNulls)
public FunctionDefinition getFunctionDefinition()
public boolean isDistinct()
public boolean isApproximate()
public boolean isIgnoreNulls()
public List<FieldReferenceExpression> getArgs()
public Optional<CallExpression> getFilterExpression()
public DataType getOutputDataType()
ResolvedExpressiongetOutputDataType in interface ResolvedExpressionpublic List<ResolvedExpression> getResolvedChildren()
getResolvedChildren in interface ResolvedExpressionpublic String asSummaryString()
ExpressionasSummaryString in interface Expressionpublic List<Expression> getChildren()
getChildren in interface Expressionpublic <R> R accept(ExpressionVisitor<R> visitor)
accept in interface ExpressionCopyright © 2014–2025 The Apache Software Foundation. All rights reserved.