public class DbUpdateReducer extends org.apache.gora.mapreduce.GoraReducer<UrlWithScore,NutchWritable,String,WebPage>
Reducer.Context
Modifier and Type | Field and Description |
---|---|
static String |
CRAWLDB_ADDITIONS_ALLOWED |
org.apache.gora.store.DataStore<String,WebPage> |
datastore |
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DbUpdateReducer() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(Reducer.Context context) |
protected void |
reduce(UrlWithScore key,
Iterable<NutchWritable> values,
Reducer.Context context) |
protected void |
setup(Reducer.Context context) |
public static final String CRAWLDB_ADDITIONS_ALLOWED
public static final org.slf4j.Logger LOG
protected void setup(Reducer.Context context) throws IOException, InterruptedException
setup
in class Reducer<UrlWithScore,NutchWritable,String,WebPage>
IOException
InterruptedException
protected void cleanup(Reducer.Context context) throws IOException, InterruptedException
cleanup
in class Reducer<UrlWithScore,NutchWritable,String,WebPage>
IOException
InterruptedException
protected void reduce(UrlWithScore key, Iterable<NutchWritable> values, Reducer.Context context) throws IOException, InterruptedException
reduce
in class Reducer<UrlWithScore,NutchWritable,String,WebPage>
IOException
InterruptedException
Copyright © 2015 The Apache Software Foundation