public static class WebGraph.OutlinkDb extends Configured implements Mapper<Text,Writable,Text,NutchWritable>, Reducer<Text,NutchWritable,Text,LinkDatum>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
URL_FILTERING |
static java.lang.String |
URL_NORMALIZING |
| Constructor and Description |
|---|
OutlinkDb()
Default constructor.
|
OutlinkDb(Configuration conf)
Configurable constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(JobConf conf)
Configures the OutlinkDb job.
|
void |
map(Text key,
Writable value,
OutputCollector<Text,NutchWritable> output,
Reporter reporter)
Passes through existing LinkDatum objects from an existing OutlinkDb and
maps out new LinkDatum objects from new crawls ParseData.
|
void |
reduce(Text key,
java.util.Iterator<NutchWritable> values,
OutputCollector<Text,LinkDatum> output,
Reporter reporter) |
getConf, setConfpublic static final java.lang.String URL_NORMALIZING
public static final java.lang.String URL_FILTERING
public OutlinkDb()
public OutlinkDb(Configuration conf)
public void configure(JobConf conf)
configure in interface JobConfigurablepublic void map(Text key, Writable value, OutputCollector<Text,NutchWritable> output, Reporter reporter) throws java.io.IOException
public void reduce(Text key, java.util.Iterator<NutchWritable> values, OutputCollector<Text,LinkDatum> output, Reporter reporter) throws java.io.IOException
public void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2017 The Apache Software Foundation