All Implemented Interfaces:
AliasedExpression, DelegateExpression, SelectExpression

public class Max extends FunctionExpression
MAX(column) aggregate function.
  • Constructor Details

    • Max

      public Max(SelectExpression target, @Nullable String alias, LabelGenerator labelGenerator)
      Creates a new Max function.
      Parameters:
      target - the target column expression
      alias - the alias for the column expression
      labelGenerator - the label generator for rendering aliases/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