public static class LinkDumper.Inverter extends java.lang.Object implements Mapper<Text,Writable,Text,ObjectWritable>, Reducer<Text,ObjectWritable,Text,LinkDumper.LinkNode>
| Constructor and Description |
|---|
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,
java.util.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 JobConfigurablepublic void map(Text key, Writable value, OutputCollector<Text,ObjectWritable> output, Reporter reporter) throws java.io.IOException
public void reduce(Text key, java.util.Iterator<ObjectWritable> values, OutputCollector<Text,LinkDumper.LinkNode> output, Reporter reporter) throws java.io.IOException
reduce in interface Reducer<Text,ObjectWritable,Text,LinkDumper.LinkNode>java.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableCopyright © 2017 The Apache Software Foundation