Class NodeDumper.Dumper.DumperMapper
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Mapper<Text,Node,Text,FloatWritable>
-
- org.apache.nutch.scoring.webgraph.NodeDumper.Dumper.DumperMapper
-
- Enclosing class:
- NodeDumper.Dumper
public static class NodeDumper.Dumper.DumperMapper extends Mapper<Text,Node,Text,FloatWritable>
Outputs the host or domain as key for this record and numInlinks, numOutlinks or score as the value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
-
-
Constructor Summary
Constructors Constructor Description DumperMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
map(Text key, Node node, Mapper.Context context)
void
setup(Mapper.Context context)
-
-
-
Method Detail
-
setup
public void setup(Mapper.Context context)
-
map
public void map(Text key, Node node, Mapper.Context context) throws IOException, InterruptedException
- Overrides:
map
in classMapper<Text,Node,Text,FloatWritable>
- Throws:
IOException
InterruptedException
-
-