Class NodeDumper.Dumper.DumperReducer
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Reducer<Text,FloatWritable,Text,FloatWritable>
-
- org.apache.nutch.scoring.webgraph.NodeDumper.Dumper.DumperReducer
-
- Enclosing class:
- NodeDumper.Dumper
public static class NodeDumper.Dumper.DumperReducer extends Reducer<Text,FloatWritable,Text,FloatWritable>
Outputs either the sum or the top value for this record.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
Reducer.Context
-
-
Constructor Summary
Constructors Constructor Description DumperReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
reduce(Text key, Iterable<FloatWritable> values, Reducer.Context context)
void
setup(Reducer.Context context)
-
-
-
Method Detail
-
reduce
public void reduce(Text key, Iterable<FloatWritable> values, Reducer.Context context) throws IOException, InterruptedException
- Overrides:
reduce
in classReducer<Text,FloatWritable,Text,FloatWritable>
- Throws:
IOException
InterruptedException
-
setup
public void setup(Reducer.Context context)
- Overrides:
setup
in classReducer<Text,FloatWritable,Text,FloatWritable>
-
-