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, setConfpublic Loops.Finalizer()
public Loops.Finalizer(Configuration conf)
public void configure(JobConf conf)
configure in interface JobConfigurablepublic 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>IOExceptionpublic 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>IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2012 The Apache Software Foundation