org.apache.nutch.crawl
Class CrawlDbReader.CrawlDbTopNReducer
java.lang.Object
org.apache.nutch.crawl.CrawlDbReader.CrawlDbTopNReducer
- All Implemented Interfaces:
- Closeable, org.apache.hadoop.mapred.JobConfigurable, org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text>
- Enclosing class:
- CrawlDbReader
public static class CrawlDbReader.CrawlDbTopNReducer
- extends Object
- implements org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text>
Method Summary |
void |
close()
|
void |
configure(org.apache.hadoop.mapred.JobConf job)
|
void |
reduce(org.apache.hadoop.io.FloatWritable key,
Iterator<org.apache.hadoop.io.Text> values,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text> output,
org.apache.hadoop.mapred.Reporter reporter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrawlDbReader.CrawlDbTopNReducer
public CrawlDbReader.CrawlDbTopNReducer()
reduce
public void reduce(org.apache.hadoop.io.FloatWritable key,
Iterator<org.apache.hadoop.io.Text> values,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text> output,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
- Specified by:
reduce
in interface org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text>
- Throws:
IOException
configure
public void configure(org.apache.hadoop.mapred.JobConf job)
- Specified by:
configure
in interface org.apache.hadoop.mapred.JobConfigurable
close
public void close()
- Specified by:
close
in interface Closeable
Copyright © 2006 The Apache Software Foundation