public static class NodeDumper.Dumper extends Configured implements Mapper<Text,Node,Text,FloatWritable>, Reducer<Text,FloatWritable,Text,FloatWritable>
| Constructor and Description |
|---|
Dumper() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
configure(JobConf conf) |
void |
map(Text key,
Node node,
OutputCollector<Text,FloatWritable> output,
Reporter reporter)
Outputs the host or domain as key for this record and numInlinks,
numOutlinks or score as the value.
|
void |
reduce(Text key,
java.util.Iterator<FloatWritable> values,
OutputCollector<Text,FloatWritable> output,
Reporter reporter)
Outputs either the sum or the top value for this record.
|
getConf, setConfpublic void configure(JobConf conf)
configure in interface JobConfigurablepublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic void map(Text key, Node node, OutputCollector<Text,FloatWritable> output, Reporter reporter) throws java.io.IOException
public void reduce(Text key, java.util.Iterator<FloatWritable> values, OutputCollector<Text,FloatWritable> output, Reporter reporter) throws java.io.IOException
reduce in interface Reducer<Text,FloatWritable,Text,FloatWritable>java.io.IOExceptionCopyright © 2017 The Apache Software Foundation