All Implemented Interfaces:
ColumnExpression, DelegateExpression, SelectExpression

public class Avg extends FunctionExpression
AVG(column) aggregate function.
  • Constructor Details

    • Avg

      public Avg(ColumnExpression target, ColumnIdentifierGenerator columnIdentifierGenerator)
      Constructs a new AVG function expression.
      Parameters:
      target - The column expression to apply the function to.
      columnIdentifierGenerator - The generator for column identifiers.
  • Method Details

    • template

      protected String template()
      Description copied from class: FunctionExpression
      Gets the template for the SQL representation of the function.

      The template should contain a single "%s" placeholder for the column identifier.

      Specified by:
      template in class FunctionExpression
      Returns:
      SQL representation template