|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.nutch.scoring.webgraph.Loops.Finalizer
public static class Loops.Finalizer
Finishes the Loops job by aggregating and collecting and found routes.
| Constructor Summary | |
|---|---|
Loops.Finalizer()
Default constructor. |
|
Loops.Finalizer(Configuration conf)
Configurable constructor. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
configure(JobConf conf)
Configures the job. |
void |
map(Text key,
Loops.Route value,
OutputCollector<Text,Loops.Route> output,
Reporter reporter)
Maps out and found routes, those will be the link cycles. |
void |
reduce(Text key,
Iterator<Loops.Route> values,
OutputCollector<Text,Loops.LoopSet> output,
Reporter reporter)
Aggregates all found routes for a given start url into a loopset and collects the loopset. |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Loops.Finalizer()
public Loops.Finalizer(Configuration conf)
| Method Detail |
|---|
public void configure(JobConf conf)
configure in interface JobConfigurable
public void map(Text key,
Loops.Route value,
OutputCollector<Text,Loops.Route> output,
Reporter reporter)
throws IOException
map in interface Mapper<Text,Loops.Route,Text,Loops.Route>IOException
public void reduce(Text key,
Iterator<Loops.Route> values,
OutputCollector<Text,Loops.LoopSet> output,
Reporter reporter)
throws IOException
reduce in interface Reducer<Text,Loops.Route,Text,Loops.LoopSet>IOExceptionpublic void close()
close in interface Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||