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