Class ArcTan

All Implemented Interfaces:
Cloneable

public class ArcTan extends SimpleFunction
Implementation of the ATAN(x) SQL function, computes the arc-tangent of a single argument. Returns NULL if the argument is NULL.
  • Constructor Details

    • ArcTan

      public ArcTan()
  • Method Details

    • getReturnType

      public ColumnType getReturnType(List<Expression> args, Schema schema)
      Description copied from class: ScalarFunction
      Returns the column type of the resulting column after applying the function. This generally depends on the column type of the inputs.
      Specified by:
      getReturnType in class ScalarFunction
      Parameters:
      args - the arguments to the function call
      schema - the schema of the table
      Returns:
      the column type of the resulting column
    • evaluate

      public Object evaluate(Environment env, List<Expression> args)
      Description copied from class: SimpleFunction
      Evaluates the function. Should be called at runtime for every function call.
      Specified by:
      evaluate in class SimpleFunction
      Parameters:
      env - Environment, in which the arguments are evaluated
      args - Arguments for this function
      Returns:
      The value of the function