public static class NodeDumper.Dumper extends Configured implements Mapper<Text,Node,Text,FloatWritable>, Reducer<Text,FloatWritable,Text,FloatWritable>
Constructor and Description |
---|
NodeDumper.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,
Iterator<FloatWritable> values,
OutputCollector<Text,FloatWritable> output,
Reporter reporter)
Outputs either the sum or the top value for this record.
|
getConf, setConf
public void configure(JobConf conf)
configure
in interface JobConfigurable
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void map(Text key, Node node, OutputCollector<Text,FloatWritable> output, Reporter reporter) throws IOException
map
in interface Mapper<Text,Node,Text,FloatWritable>
IOException
public void reduce(Text key, Iterator<FloatWritable> values, OutputCollector<Text,FloatWritable> output, Reporter reporter) throws IOException
reduce
in interface Reducer<Text,FloatWritable,Text,FloatWritable>
IOException
Copyright © 2015 The Apache Software Foundation