public class GroovyAccumulatorEvalFunc extends AccumulatorEvalFunc<java.lang.Object>
EvalFunc.SchemaTypelog, pigLogger, reporter, returnType| Constructor and Description | 
|---|
| GroovyAccumulatorEvalFunc(java.lang.String path,
                         java.lang.String namespace,
                         java.lang.String accumulatorMethod,
                         java.lang.String accumulateMethod,
                         java.lang.String getValueMethod,
                         java.lang.String cleanupMethod) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | accumulate(Tuple b)Pass tuples to the UDF. | 
| void | cleanup()Called after getValue() to prepare processing for next key. | 
| java.lang.Object | getValue()Called when all tuples from current key have been passed to accumulate. | 
| Schema | outputSchema(Schema input)Report the schema of the output of this UDF. | 
execallowCompileTimeCalculation, finish, getArgToFuncMapping, getCacheFiles, getInputSchema, getLogger, getPigLogger, getReporter, getReturnType, getSchemaName, getSchemaType, getShipFiles, isAsynchronous, progress, setInputSchema, setPigLogger, setReporter, setUDFContextSignature, warnpublic GroovyAccumulatorEvalFunc(java.lang.String path,
                         java.lang.String namespace,
                         java.lang.String accumulatorMethod,
                         java.lang.String accumulateMethod,
                         java.lang.String getValueMethod,
                         java.lang.String cleanupMethod)
                          throws java.io.IOException
java.io.IOExceptionpublic void accumulate(Tuple b) throws java.io.IOException
Accumulatoraccumulate in interface Accumulator<java.lang.Object>accumulate in class AccumulatorEvalFunc<java.lang.Object>b - A tuple containing a single field, which is a bag.  The bag will contain the set
 of tuples being passed to the UDF in this iteration.java.io.IOExceptionpublic void cleanup()
Accumulatorcleanup in interface Accumulator<java.lang.Object>cleanup in class AccumulatorEvalFunc<java.lang.Object>public java.lang.Object getValue()
AccumulatorgetValue in interface Accumulator<java.lang.Object>getValue in class AccumulatorEvalFunc<java.lang.Object>public Schema outputSchema(Schema input)
EvalFunc
 The default implementation interprets the OutputSchema annotation,
 if one is present. Otherwise, it returns null (no known output schema).
outputSchema in class EvalFunc<java.lang.Object>input - Schema of the inputCopyright © 2007-2012 The Apache Software Foundation