public class NullIfFunction extends BaseFunction implements ScalarFunction, FunctionFactory
The result of using NULLIF(e1,e2) is the same as using the expression
CASE WHEN e1=e2 THEN NULL ELSE e1 END
_hash| Constructor and Description |
|---|
NullIfFunction() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
evaluate(RowDecorator row) |
DataType |
getDataType()
|
boolean |
isValid() |
ConcreteFunction |
makeNewInstance() |
addArgument, getArgument, getArgumentCount, setArgument, setVariableContext, toStringgetAlias, getLabel, getName, setAlias, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddArgument, getAlias, getArgument, getArgumentCount, getName, setAlias, setArgumentgetLabel, setVariableContextpublic ConcreteFunction makeNewInstance()
makeNewInstance in interface FunctionFactorypublic DataType getDataType()
getDataType in interface SelectablegetDataType in class BaseFunctionpublic java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate in interface ScalarFunctionevaluate in interface SelectableAxionExceptionpublic boolean isValid()
isValid in interface ConcreteFunctionisValid in class BaseFunction