public class SignFunction extends BaseFunction implements ScalarFunction, FunctionFactory
double value. If the value
is less than zero, -1 is returned. If the value equals zero, 0 is returned. If the
value is greater than zero, 1 is returned._hash| Constructor and Description |
|---|
SignFunction()
Creates a new instance of Class
|
| 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