public static class PrePartition.PGReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.ShortWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
Constructor and Description |
---|
PGReducer() |
Modifier and Type | Method and Description |
---|---|
protected void |
reduce(org.apache.hadoop.io.ShortWritable edgeColor,
java.lang.Iterable<org.apache.hadoop.io.LongWritable> edges,
org.apache.hadoop.mapreduce.Reducer.Context context)
The reduce function of pre-partitioning
|
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context)
setup before execution.
|
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
setup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.ShortWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
context
- of hadoopjava.io.IOException
- by hadoopjava.lang.InterruptedException
- by hadoopprotected void reduce(org.apache.hadoop.io.ShortWritable edgeColor, java.lang.Iterable<org.apache.hadoop.io.LongWritable> edges, org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.ShortWritable,org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
edgeColor
- the color of edges (u, v). (color(u) * numColors + color(v))edges
- edges of the edge colorcontext
- of hadoopjava.io.IOException
- by hadoopjava.lang.InterruptedException
- by hadoop