public abstract class ArithmeticFunction extends BaseFunction implements ScalarFunction
_hash
Constructor and Description |
---|
ArithmeticFunction(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
evaluate(RowDecorator row) |
DataType |
getDataType() |
boolean |
isValid() |
protected abstract java.math.BigDecimal |
operate(java.math.BigDecimal left,
java.math.BigDecimal right) |
protected void |
setDataType(DataType newType) |
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 final DataType getDataType()
getDataType
in interface Selectable
getDataType
in class BaseFunction
public final java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate
in interface ScalarFunction
evaluate
in interface Selectable
AxionException
public final boolean isValid()
isValid
in interface ConcreteFunction
isValid
in class BaseFunction
protected abstract java.math.BigDecimal operate(java.math.BigDecimal left, java.math.BigDecimal right) throws AxionException
AxionException
protected void setDataType(DataType newType)