Class GeneralAggregateFunc
Object
org.apache.spark.sql.internal.connector.ExpressionWithToString
org.apache.spark.sql.connector.expressions.aggregate.GeneralAggregateFunc
- All Implemented Interfaces:
- Serializable,- AggregateFunc,- Expression
@Evolving
public final class GeneralAggregateFunc
extends org.apache.spark.sql.internal.connector.ExpressionWithToString
implements AggregateFunc
The general implementation of 
AggregateFunc, which contains the upper-cased function
 name, the `isDistinct` flag and all the inputs. Note that Spark cannot push down partial
 aggregate with this function to the source, but can only push down the entire aggregate.
 The currently supported SQL aggregate functions:
- VAR_POP(input1) Since 3.3.0
- VAR_SAMP(input1) Since 3.3.0
- STDDEV_POP(input1) Since 3.3.0
- STDDEV_SAMP(input1) Since 3.3.0
- COVAR_POP(input1, input2) Since 3.3.0
- COVAR_SAMP(input1, input2) Since 3.3.0
- CORR(input1, input2) Since 3.3.0
- REGR_INTERCEPT(input1, input2) Since 3.4.0
- REGR_R2(input1, input2) Since 3.4.0
- REGR_SLOPE(input1, input2) Since 3.4.0
- REGR_SXY(input1, input2) Since 3.4.0
- MODE() WITHIN (ORDER BY input1 [ASC|DESC]) Since 4.0.0
- PERCENTILE_CONT(input1) WITHIN (ORDER BY input2 [ASC|DESC]) Since 4.0.0
- PERCENTILE_DISC(input1) WITHIN (ORDER BY input2 [ASC|DESC]) Since 4.0.0
- Since:
- 3.3.0
- See Also:
- 
Field SummaryFields inherited from interface org.apache.spark.sql.connector.expressions.ExpressionEMPTY_EXPRESSION, EMPTY_NAMED_REFERENCE
- 
Constructor SummaryConstructorsConstructorDescriptionGeneralAggregateFunc(String name, boolean isDistinct, Expression[] children) GeneralAggregateFunc(String name, boolean isDistinct, Expression[] children, SortValue[] orderingWithinGroups) 
- 
Method SummaryMethods inherited from class org.apache.spark.sql.internal.connector.ExpressionWithToStringdescribe, references, toStringMethods inherited from interface org.apache.spark.sql.connector.expressions.Expressiondescribe, references
- 
Constructor Details- 
GeneralAggregateFunc
- 
GeneralAggregateFuncpublic GeneralAggregateFunc(String name, boolean isDistinct, Expression[] children, SortValue[] orderingWithinGroups) 
 
- 
- 
Method Details- 
name
- 
isDistinctpublic boolean isDistinct()
- 
childrenDescription copied from interface:ExpressionReturns an array of the children of this node. Children should not change.- Specified by:
- childrenin interface- Expression
 
- 
orderingWithinGroupspublic SortValue[] orderingWithinGroups()
- 
equals
- 
hashCodepublic int hashCode()
 
-