public static class PigGenericMapReduce.ReduceWithComparator extends PigMapReduce.Reduce
PigMapReduce.Reduce.IllustratorContextImplerrorInReduce, initialized, log, outputCollector, pack, rp, stores| Constructor and Description |
|---|
ReduceWithComparator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
reduce(PigNullableWritable key,
java.lang.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, setReducePlanprotected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
throws java.io.IOException,
java.lang.InterruptedException
setup in class PigGenericMapReduce.Reducejava.io.IOExceptionjava.lang.InterruptedExceptionprotected void reduce(PigNullableWritable key, java.lang.Iterable<NullableTuple> tupIter, org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
reduce in class PigGenericMapReduce.Reducejava.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2007-2025 The Apache Software Foundation