|
||||||||||
| 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.Initializer
public static class Loops.Initializer
Initializes the Loop routes.
| Constructor Summary | |
|---|---|
Loops.Initializer()
Default constructor. |
|
Loops.Initializer(Configuration conf)
Configurable constructor. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
configure(JobConf conf)
Configure the job. |
void |
map(Text key,
Writable value,
OutputCollector<Text,ObjectWritable> output,
Reporter reporter)
Wraps values in ObjectWritable. |
void |
reduce(Text key,
Iterator<ObjectWritable> values,
OutputCollector<Text,Loops.Route> output,
Reporter reporter)
Takes any node that has inlinks and sets up a route for all of its outlinks. |
| 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.Initializer()
public Loops.Initializer(Configuration conf)
| Method Detail |
|---|
public void configure(JobConf conf)
configure in interface JobConfigurable
public void map(Text key,
Writable value,
OutputCollector<Text,ObjectWritable> output,
Reporter reporter)
throws IOException
map in interface Mapper<Text,Writable,Text,ObjectWritable>IOException
public void reduce(Text key,
Iterator<ObjectWritable> values,
OutputCollector<Text,Loops.Route> output,
Reporter reporter)
throws IOException
reduce in interface Reducer<Text,ObjectWritable,Text,Loops.Route>IOExceptionpublic void close()
close in interface Closeable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||