Object
org.apache.spark.sql.internal.connector.ExpressionWithToString
org.apache.spark.sql.connector.expressions.aggregate.Avg
All Implemented Interfaces:
Serializable, AggregateFunc, Expression

@Evolving public final class Avg extends org.apache.spark.sql.internal.connector.ExpressionWithToString implements AggregateFunc
An aggregate function that returns the mean of all the values in a group.
Since:
3.3.0
See Also:
  • Constructor Details

    • Avg

      public Avg(Expression column, boolean isDistinct)
  • Method Details

    • column

      public Expression column()
    • isDistinct

      public boolean isDistinct()
    • children

      public Expression[] children()
      Description copied from interface: Expression
      Returns an array of the children of this node. Children should not change.
      Specified by:
      children in interface Expression