[TOC]
org.apache.nutch.crawl
Class Generator.PartitionReducer
- java.lang.Object
- org.apache.hadoop.mapred.MapReduceBase
- org.apache.nutch.crawl.Generator.PartitionReducer
- All Implemented Interfaces:
- Closeable, AutoCloseable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Reducer
- Enclosing class:
- Generator
public static class Generator.PartitionReducer extends org.apache.hadoop.mapred.MapReduceBase implements org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,Generator.SelectorEntry,org.apache.hadoop.io.Text,CrawlDatum>
Constructor Summary
Constructors Constructor and Description Generator.PartitionReducer()
Method Summary
Methods Modifier and Type Method and Description void
reduce(org.apache.hadoop.io.Text key,
Iterator
-
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase
close, configure
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hadoop.mapred.JobConfigurable
configure
-
Methods inherited from interface java.io.Closeable
close
Constructor Detail
-
Generator.PartitionReducer
public Generator.PartitionReducer()
Method Detail
-
reduce
public void reduce(org.apache.hadoop.io.Text key, Iterator<Generator.SelectorEntry> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,CrawlDatum> output, org.apache.hadoop.mapred.Reporter reporter) throws IOException
- Specified by:
- <code>reduce</code> in interface <code>org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.text,generator.selectorentry,org.apache.hadoop.io.text,crawldatum></org.apache.hadoop.io.text,generator.selectorentry,org.apache.hadoop.io.text,crawldatum></code>
- Throws:
- <code>IOException</code>