org.axiondb.functions

Class SignFunction

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 $

Author: Sudhendra Seshachala Ahimanikya Satapathy

Constructor Summary
SignFunction()
Creates a new instance of Class
Method Summary
Objectevaluate(RowDecorator row)
DataTypegetDataType()
booleanisValid()
ConcreteFunctionmakeNewInstance()

Constructor Detail

SignFunction

public SignFunction()
Creates a new instance of Class

Method Detail

evaluate

public Object evaluate(RowDecorator row)

getDataType

public DataType getDataType()
IntegerType

isValid

public boolean isValid()

makeNewInstance

public ConcreteFunction makeNewInstance()