public static class PigGenericMapReduce.ReduceWithComparator
extends org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapReduce.Reduce
errorInReduce, initialized, log, outputCollector, pack, rp, stores| Constructor and Description |
|---|
PigGenericMapReduce.ReduceWithComparator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
reduce(PigNullableWritable key,
Iterable<NullableTuple> tupIter,
org.apache.hadoop.mapreduce.Reducer.Context context)
The reduce function which packages the key and List<Tuple>
into key, Bag<Tuple> after converting Hadoop type key into Pig type.
|
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context)
Configures the Reduce plan, the POPackage operator
and the reporter thread
|
getIllustratorContext, getPack, inIllustratorcleanup, processOnePackageOutput, runPipeline, setReducePlanpublic PigGenericMapReduce.ReduceWithComparator()
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
setup in class PigGenericMapReduce.ReduceIOExceptionInterruptedExceptionprotected void reduce(PigNullableWritable key, Iterable<NullableTuple> tupIter, org.apache.hadoop.mapreduce.Reducer.Context context) throws IOException, InterruptedException
reduce in class PigGenericMapReduce.ReduceIOExceptionInterruptedExceptionCopyright © 2007-2012 The Apache Software Foundation