@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, wait
asSerializableString
public 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()
ResolvedExpression
getOutputDataType
in interface ResolvedExpression
public List<ResolvedExpression> getResolvedChildren()
getResolvedChildren
in interface ResolvedExpression
public String asSummaryString()
Expression
asSummaryString
in interface Expression
public List<Expression> getChildren()
getChildren
in interface Expression
public <R> R accept(ExpressionVisitor<R> visitor)
accept
in interface Expression
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.