Package edu.caltech.nanodb.functions
Class SimpleFunction
- java.lang.Object
-
- edu.caltech.nanodb.functions.Function
-
- edu.caltech.nanodb.functions.ScalarFunction
-
- edu.caltech.nanodb.functions.SimpleFunction
-
- All Implemented Interfaces:
java.lang.Cloneable
- Direct Known Subclasses:
Abs
,ArcCos
,ArcSin
,ArcTan
,ArcTan2
,Ceil
,Coalesce
,Concat
,Cos
,Floor
,Greatest
,If
,IfNull
,Least
,NullIf
,Pow
,ReadPerfCounter
,ResetPerfCounter
,Round
,Sin
,Sqrt
,Tan
public abstract class SimpleFunction extends ScalarFunction
Created by donnie on 12/5/13.
-
-
Constructor Summary
Constructors Constructor Description SimpleFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.Object
evaluate(Environment env, java.util.List<Expression> args)
Evaluates the function.-
Methods inherited from class edu.caltech.nanodb.functions.ScalarFunction
getReturnType
-
-
-
-
Method Detail
-
evaluate
public abstract java.lang.Object evaluate(Environment env, java.util.List<Expression> args)
Evaluates the function. Should be called at runtime for every function call.- Parameters:
env
- Environment, in which the arguments are evaluatedargs
- Arguments for this function- Returns:
- The value of the function
- Throws:
ExpressionException
- when there is a problem with the evaluation like wrong number of arguments.
-
-