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.JobConfigurable
public 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>
IOException
public 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>
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2014 The Apache Software Foundation