|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.conf.Configured org.apache.nutch.scoring.webgraph.Loops.Looper
public static class Loops.Looper
Follows a route path looking for the start url of the route. If the start url is found then the route is a cyclical path.
Constructor Summary | |
---|---|
Loops.Looper()
Default constructor. |
|
Loops.Looper(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)
Wrap values in ObjectWritable. |
void |
reduce(Text key,
Iterator<ObjectWritable> values,
OutputCollector<Text,Loops.Route> output,
Reporter reporter)
Performs a single loop pass looking for loop cycles within routes. |
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.Looper()
public Loops.Looper(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>
IOException
public void close()
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |