@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.
Note: currently, the AggregateExpression is only used in SupportsAggregatePushDown.
| 构造器和说明 |
|---|
AggregateExpression(FunctionDefinition functionDefinition,
List<FieldReferenceExpression> args,
CallExpression filterExpression,
DataType resultType,
boolean distinct,
boolean approximate,
boolean ignoreNulls) |
| 限定符和类型 | 方法和说明 |
|---|---|
<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() |
asSerializableStringpublic 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()
@Nullable public Optional<CallExpression> getFilterExpression()
public DataType getOutputDataType()
ResolvedExpressiongetOutputDataType 在接口中 ResolvedExpressionpublic List<ResolvedExpression> getResolvedChildren()
getResolvedChildren 在接口中 ResolvedExpressionpublic String asSummaryString()
ExpressionasSummaryString 在接口中 Expressionpublic List<Expression> getChildren()
getChildren 在接口中 Expressionpublic <R> R accept(ExpressionVisitor<R> visitor)
accept 在接口中 ExpressionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.