public class IfThenFunction extends BaseFunction implements ScalarFunction, FunctionFactory
IFTHEN(condition value)
: returns value if condition
evalates to true; else, it returns null._hash
Constructor and Description |
---|
IfThenFunction() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(RowDecorator row) |
DataType |
getDataType()
|
boolean |
isValid() |
ConcreteFunction |
makeNewInstance() |
addArgument, getArgument, getArgumentCount, setArgument, setVariableContext, toString
getAlias, getLabel, getName, setAlias, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgument
getLabel, setVariableContext
public ConcreteFunction makeNewInstance()
makeNewInstance
in interface FunctionFactory
public DataType getDataType()
getDataType
in interface Selectable
getDataType
in class BaseFunction
public java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate
in interface ScalarFunction
evaluate
in interface Selectable
AxionException
public boolean isValid()
isValid
in interface ConcreteFunction
isValid
in class BaseFunction