public class DoubleVAR
extends org.apache.pig.EvalFunc<java.lang.Double>
implements org.apache.pig.Algebraic, org.apache.pig.Accumulator<java.lang.Double>
VAR| Modifier and Type | Class and Description |
|---|---|
static class |
DoubleVAR.Final |
static class |
DoubleVAR.Initial |
static class |
DoubleVAR.Intermediate |
| Constructor and Description |
|---|
DoubleVAR() |
| Modifier and Type | Method and Description |
|---|---|
void |
accumulate(org.apache.pig.data.Tuple b) |
void |
cleanup() |
protected static org.apache.pig.data.Tuple |
combine(org.apache.pig.data.DataBag values) |
protected static long |
count(org.apache.pig.data.Tuple input) |
java.lang.Double |
exec(org.apache.pig.data.Tuple input) |
java.lang.String |
getFinal() |
java.lang.String |
getInitial() |
java.lang.String |
getIntermed() |
java.lang.Double |
getValue() |
org.apache.pig.impl.logicalLayer.schema.Schema |
outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input) |
protected static java.lang.Double |
sum(org.apache.pig.data.Tuple input) |
protected static java.lang.Double |
sumSquare(org.apache.pig.data.Tuple input) |
allowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic java.lang.Double exec(org.apache.pig.data.Tuple input)
throws java.io.IOException
exec in class org.apache.pig.EvalFunc<java.lang.Double>java.io.IOExceptionpublic java.lang.String getInitial()
getInitial in interface org.apache.pig.Algebraicpublic java.lang.String getIntermed()
getIntermed in interface org.apache.pig.Algebraicpublic java.lang.String getFinal()
getFinal in interface org.apache.pig.Algebraicprotected static org.apache.pig.data.Tuple combine(org.apache.pig.data.DataBag values)
throws org.apache.pig.backend.executionengine.ExecException
org.apache.pig.backend.executionengine.ExecExceptionprotected static long count(org.apache.pig.data.Tuple input)
throws org.apache.pig.backend.executionengine.ExecException
org.apache.pig.backend.executionengine.ExecExceptionprotected static java.lang.Double sum(org.apache.pig.data.Tuple input)
throws org.apache.pig.backend.executionengine.ExecException,
java.io.IOException
org.apache.pig.backend.executionengine.ExecExceptionjava.io.IOExceptionprotected static java.lang.Double sumSquare(org.apache.pig.data.Tuple input)
throws org.apache.pig.backend.executionengine.ExecException,
java.io.IOException
org.apache.pig.backend.executionengine.ExecExceptionjava.io.IOExceptionpublic org.apache.pig.impl.logicalLayer.schema.Schema outputSchema(org.apache.pig.impl.logicalLayer.schema.Schema input)
outputSchema in class org.apache.pig.EvalFunc<java.lang.Double>public void accumulate(org.apache.pig.data.Tuple b)
throws java.io.IOException
accumulate in interface org.apache.pig.Accumulator<java.lang.Double>java.io.IOExceptionpublic void cleanup()
cleanup in interface org.apache.pig.Accumulator<java.lang.Double>public java.lang.Double getValue()
getValue in interface org.apache.pig.Accumulator<java.lang.Double>