Package edu.caltech.nanodb.functions
Class ArcTan
java.lang.Object
edu.caltech.nanodb.functions.Function
edu.caltech.nanodb.functions.ScalarFunction
edu.caltech.nanodb.functions.SimpleFunction
edu.caltech.nanodb.functions.ArcTan
- All Implemented Interfaces:
Cloneable
Implementation of the ATAN(x) SQL function, computes the
arc-tangent of a single argument. Returns NULL if the argument is
NULL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(Environment env, List<Expression> args) Evaluates the function.getReturnType(List<Expression> args, Schema schema) Returns the column type of the resulting column after applying the function.
-
Constructor Details
-
ArcTan
public ArcTan()
-
-
Method Details
-
getReturnType
Description copied from class:ScalarFunctionReturns the column type of the resulting column after applying the function. This generally depends on the column type of the inputs.- Specified by:
getReturnTypein classScalarFunction- Parameters:
args- the arguments to the function callschema- the schema of the table- Returns:
- the column type of the resulting column
-
evaluate
Description copied from class:SimpleFunctionEvaluates the function. Should be called at runtime for every function call.- Specified by:
evaluatein classSimpleFunction- Parameters:
env- Environment, in which the arguments are evaluatedargs- Arguments for this function- Returns:
- The value of the function
-