org.apache.nutch.crawl
Class DbUpdateReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<K1,V1,K2,V2>
      extended by org.apache.gora.mapreduce.GoraReducer<UrlWithScore,NutchWritable,String,WebPage>
          extended by org.apache.nutch.crawl.DbUpdateReducer

public class DbUpdateReducer
extends org.apache.gora.mapreduce.GoraReducer<UrlWithScore,NutchWritable,String,WebPage>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Field Summary
static String CRAWLDB_ADDITIONS_ALLOWED
           
static org.slf4j.Logger LOG
           
 
Constructor Summary
DbUpdateReducer()
           
 
Method Summary
protected  void reduce(UrlWithScore key, Iterable<NutchWritable> values, org.apache.hadoop.mapreduce.Reducer.Context context)
           
protected  void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
           
 
Methods inherited from class org.apache.gora.mapreduce.GoraReducer
initReducerJob, initReducerJob, initReducerJob
 
Methods inherited from class org.apache.hadoop.mapreduce.Reducer
cleanup, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CRAWLDB_ADDITIONS_ALLOWED

public static final String CRAWLDB_ADDITIONS_ALLOWED
See Also:
Constant Field Values

LOG

public static final org.slf4j.Logger LOG
Constructor Detail

DbUpdateReducer

public DbUpdateReducer()
Method Detail

setup

protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
              throws IOException,
                     InterruptedException
Overrides:
setup in class org.apache.hadoop.mapreduce.Reducer<UrlWithScore,NutchWritable,String,WebPage>
Throws:
IOException
InterruptedException

reduce

protected void reduce(UrlWithScore key,
                      Iterable<NutchWritable> values,
                      org.apache.hadoop.mapreduce.Reducer.Context context)
               throws IOException,
                      InterruptedException
Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<UrlWithScore,NutchWritable,String,WebPage>
Throws:
IOException
InterruptedException


Copyright © 2013 The Apache Software Foundation