Class AggregateExpression
java.lang.Object
org.apache.flink.table.expressions.AggregateExpression
- All Implemented Interfaces:
Expression,ResolvedExpression
Resolved and validated expression for calling an aggregate function.
A aggregate call contains:
- a
FunctionDefinitionthat identifies the function to be called - a list of
FieldReferenceExpressionrepresents the arguments for aggregate function. - a
CallExpressionrepresents the filter with the aggregate function. - a
DataTyperepresents the result data type of aggregate function. distinctindicates whether this is a distinct aggregate function.approximateindicates whether this is a approximate aggregate function.ignoreNullsindicates whether this aggregate function ignore null value.
-
Constructor Summary
ConstructorsConstructorDescriptionAggregateExpression(FunctionDefinition functionDefinition, List<FieldReferenceExpression> args, CallExpression filterExpression, DataType resultType, boolean distinct, boolean approximate, boolean ignoreNulls) -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ExpressionVisitor<R> visitor) Returns a string that summarizes this expression for printing to a console.booleangetArgs()Returns the data type of the computation result.inthashCode()booleanbooleanbooleantoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.flink.table.expressions.ResolvedExpression
asSerializableString
-
Constructor Details
-
AggregateExpression
public AggregateExpression(FunctionDefinition functionDefinition, List<FieldReferenceExpression> args, @Nullable CallExpression filterExpression, DataType resultType, boolean distinct, boolean approximate, boolean ignoreNulls)
-
-
Method Details
-
getFunctionDefinition
-
isDistinct
public boolean isDistinct() -
isApproximate
public boolean isApproximate() -
isIgnoreNulls
public boolean isIgnoreNulls() -
getArgs
-
getFilterExpression
-
getOutputDataType
Description copied from interface:ResolvedExpressionReturns the data type of the computation result.- Specified by:
getOutputDataTypein interfaceResolvedExpression
-
getResolvedChildren
- Specified by:
getResolvedChildrenin interfaceResolvedExpression
-
asSummaryString
Description copied from interface:ExpressionReturns a string that summarizes this expression for printing to a console. An implementation might skip very specific properties.- Specified by:
asSummaryStringin interfaceExpression- Returns:
- summary string of this expression for debugging purposes
-
getChildren
- Specified by:
getChildrenin interfaceExpression
-
accept
- Specified by:
acceptin interfaceExpression
-
equals
-
hashCode
public int hashCode() -
toString
-