public static class Loops.Finalizer extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.Text,Loops.Route,org.apache.hadoop.io.Text,Loops.Route>, org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,Loops.Route,org.apache.hadoop.io.Text,Loops.LoopSet>
| Constructor and Description |
|---|
Loops.Finalizer()
Default constructor.
|
Loops.Finalizer(org.apache.hadoop.conf.Configuration conf)
Configurable constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(org.apache.hadoop.mapred.JobConf conf)
Configures the job.
|
void |
map(org.apache.hadoop.io.Text key,
Loops.Route value,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,Loops.Route> output,
org.apache.hadoop.mapred.Reporter reporter)
Maps out and found routes, those will be the link cycles.
|
void |
reduce(org.apache.hadoop.io.Text key,
Iterator<Loops.Route> values,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,Loops.LoopSet> output,
org.apache.hadoop.mapred.Reporter reporter)
Aggregates all found routes for a given start url into a loopset and
collects the loopset.
|
public Loops.Finalizer()
public Loops.Finalizer(org.apache.hadoop.conf.Configuration conf)
public void configure(org.apache.hadoop.mapred.JobConf conf)
configure in interface org.apache.hadoop.mapred.JobConfigurablepublic void map(org.apache.hadoop.io.Text key,
Loops.Route value,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,Loops.Route> output,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
map in interface org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.Text,Loops.Route,org.apache.hadoop.io.Text,Loops.Route>IOExceptionpublic void reduce(org.apache.hadoop.io.Text key,
Iterator<Loops.Route> values,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,Loops.LoopSet> output,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
reduce in interface org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,Loops.Route,org.apache.hadoop.io.Text,Loops.LoopSet>IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014 The Apache Software Foundation