Package org.apache.nutch.crawl
Class Generator.SelectorReducer
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Reducer<FloatWritable,Generator.SelectorEntry,FloatWritable,Generator.SelectorEntry>
-
- org.apache.nutch.crawl.Generator.SelectorReducer
-
- Enclosing class:
- Generator
public static class Generator.SelectorReducer extends Reducer<FloatWritable,Generator.SelectorEntry,FloatWritable,Generator.SelectorEntry>
Collect until limit is reached.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
Reducer.Context
-
-
Constructor Summary
Constructors Constructor Description SelectorReducer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup(Reducer.Context context)
void
readHostDb()
void
reduce(FloatWritable key, Iterable<Generator.SelectorEntry> values, Reducer.Context context)
void
setup(Reducer.Context context)
-
-
-
Method Detail
-
readHostDb
public void readHostDb() throws IOException
- Throws:
IOException
-
setup
public void setup(Reducer.Context context) throws IOException
- Overrides:
setup
in classReducer<FloatWritable,Generator.SelectorEntry,FloatWritable,Generator.SelectorEntry>
- Throws:
IOException
-
cleanup
public void cleanup(Reducer.Context context) throws IOException, InterruptedException
- Overrides:
cleanup
in classReducer<FloatWritable,Generator.SelectorEntry,FloatWritable,Generator.SelectorEntry>
- Throws:
IOException
InterruptedException
-
reduce
public void reduce(FloatWritable key, Iterable<Generator.SelectorEntry> values, Reducer.Context context) throws IOException, InterruptedException
- Overrides:
reduce
in classReducer<FloatWritable,Generator.SelectorEntry,FloatWritable,Generator.SelectorEntry>
- Throws:
IOException
InterruptedException
-
-