org.apache.pig.piggybank.evaluation.math
Class DoubleDoubleBase
java.lang.Object
org.apache.pig.EvalFunc<Double>
org.apache.pig.piggybank.evaluation.math.Base
org.apache.pig.piggybank.evaluation.math.DoubleDoubleBase
- Direct Known Subclasses:
- ATAN2, HYPOT, IEEEremainder, POW
public abstract class DoubleDoubleBase
- extends Base
base class for math udfs that return Double value
Methods inherited from class org.apache.pig.piggybank.evaluation.math.Base |
outputSchema |
Methods inherited from class org.apache.pig.EvalFunc |
finish, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, isAsynchronous, progress, setPigLogger, setReporter, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DoubleDoubleBase
public DoubleDoubleBase()
exec
public Double exec(Tuple input)
throws IOException
- java level API
- Specified by:
exec
in class EvalFunc<Double>
- Parameters:
input
- expects a tuple with a single Double valueoutput
- returns a Double value
- Returns:
- result, of type T.
- Throws:
IOException
getArgToFuncMapping
public List<FuncSpec> getArgToFuncMapping()
throws FrontendException
- Overrides:
getArgToFuncMapping
in class EvalFunc<Double>
- Returns:
- A List containing FuncSpec objects representing the Function class
which can handle the inputs corresponding to the schema in the objects
- Throws:
FrontendException
Copyright © ${year} The Apache Software Foundation