public static class LinkDumper.Inverter extends Object implements Mapper<Text,Writable,Text,ObjectWritable>, Reducer<Text,ObjectWritable,Text,LinkDumper.LinkNode>
Constructor and Description |
---|
LinkDumper.Inverter() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(JobConf conf) |
void |
map(Text key,
Writable value,
OutputCollector<Text,ObjectWritable> output,
Reporter reporter)
Wraps all values in ObjectWritables.
|
void |
reduce(Text key,
Iterator<ObjectWritable> values,
OutputCollector<Text,LinkDumper.LinkNode> output,
Reporter reporter)
Inverts outlinks to inlinks while attaching node information to the
outlink.
|
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,LinkDumper.LinkNode> output, Reporter reporter) throws IOException
reduce
in interface Reducer<Text,ObjectWritable,Text,LinkDumper.LinkNode>
IOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2015 The Apache Software Foundation