All Implemented Interfaces:
AliasedExpression, DelegateExpression, SelectExpression

public class Abs extends FunctionExpression
ABS(column) scalar function.
  • Constructor Details

    • Abs

      public Abs(SelectExpression target, @Nullable String alias, LabelGenerator labelGenerator)
      Constructs a new ABS function expression.
      Parameters:
      target - The column expression to apply the function to.
      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