public static class NodeDumper.Dumper extends org.apache.hadoop.conf.Configured implements org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.Text,Node,org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable>, org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable>
Constructor and Description |
---|
NodeDumper.Dumper() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
configure(org.apache.hadoop.mapred.JobConf conf) |
void |
map(org.apache.hadoop.io.Text key,
Node node,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable> output,
org.apache.hadoop.mapred.Reporter reporter)
Outputs the host or domain as key for this record and numInlinks, numOutlinks
or score as the value.
|
void |
reduce(org.apache.hadoop.io.Text key,
Iterator<org.apache.hadoop.io.FloatWritable> values,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable> output,
org.apache.hadoop.mapred.Reporter reporter)
Outputs either the sum or the top value for this record.
|
public void configure(org.apache.hadoop.mapred.JobConf conf)
configure
in interface org.apache.hadoop.mapred.JobConfigurable
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void map(org.apache.hadoop.io.Text key, Node node, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable> output, org.apache.hadoop.mapred.Reporter reporter) throws IOException
map
in interface org.apache.hadoop.mapred.Mapper<org.apache.hadoop.io.Text,Node,org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable>
IOException
public void reduce(org.apache.hadoop.io.Text key, Iterator<org.apache.hadoop.io.FloatWritable> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable> output, org.apache.hadoop.mapred.Reporter reporter) throws IOException
reduce
in interface org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.FloatWritable>
IOException
Copyright © 2014 The Apache Software Foundation