public static class Loops.Initializer extends Configured implements Mapper<Text,Writable,Text,ObjectWritable>, Reducer<Text,ObjectWritable,Text,Loops.Route>
Constructor and Description |
---|
Loops.Initializer()
Default constructor.
|
Loops.Initializer(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)
Wraps values in ObjectWritable.
|
void |
reduce(Text key,
Iterator<ObjectWritable> values,
OutputCollector<Text,Loops.Route> output,
Reporter reporter)
Takes any node that has inlinks and sets up a route for all of its
outlinks.
|
getConf, setConf
public Loops.Initializer()
public Loops.Initializer(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