org.axiondb.functions
Class SignFunction
java.lang.Object
org.axiondb.BaseSelectable
org.axiondb.functions.BaseFunction
org.axiondb.functions.SignFunction
- All Implemented Interfaces:
- Serializable, Function, FunctionFactory, ConcreteFunction, ScalarFunction, Selectable
public class SignFunction
- extends BaseFunction
- implements ScalarFunction, FunctionFactory
Returns an indicator of the sign of the given 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.
- Version:
- $Revision: 1.7 $ $Date: 2005/12/20 18:32:28 $
- See Also:
- Serialized Form
Constructor Summary |
SignFunction()
Creates a new instance of Class |
SignFunction
public SignFunction()
- Creates a new instance of Class
makeNewInstance
public ConcreteFunction makeNewInstance()
- Specified by:
makeNewInstance
in interface FunctionFactory
getDataType
public DataType getDataType()
IntegerType
- Specified by:
getDataType
in interface Selectable
- Specified by:
getDataType
in class BaseFunction
evaluate
public Object evaluate(RowDecorator row)
throws AxionException
- Specified by:
evaluate
in interface ScalarFunction
- Specified by:
evaluate
in interface Selectable
- Throws:
AxionException
isValid
public boolean isValid()
- Specified by:
isValid
in interface ConcreteFunction
- Specified by:
isValid
in class BaseFunction