public static class Loops.Finalizer extends Configured implements Mapper<Text,Loops.Route,Text,Loops.Route>, Reducer<Text,Loops.Route,Text,Loops.LoopSet>
Constructor and Description |
---|
Loops.Finalizer()
Default constructor.
|
Loops.Finalizer(Configuration conf)
Configurable constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getConf, setConf
public Loops.Finalizer()
public Loops.Finalizer(Configuration conf)
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>
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2015 The Apache Software Foundation