Class NodeDumper.Sorter.SorterMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<Text,Node,FloatWritable,Text>
org.apache.nutch.scoring.webgraph.NodeDumper.Sorter.SorterMapper
- Enclosing class:
- NodeDumper.Sorter
Outputs the url with the appropriate number of inlinks, outlinks, or for
score.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SorterMapper
public SorterMapper()
-
-
Method Details
-
setup
Configures the mapper, sets the flag for type of content and the topN number if any. -
map
public void map(Text key, Node node, Mapper<Text, Node, throws IOException, InterruptedExceptionFloatWritable, Text>.Context context) - Overrides:
mapin classMapper<Text,Node, FloatWritable, Text> - Throws:
IOExceptionInterruptedException
-