Class WebGraph.OutlinkDb.OutlinkDbMapper
- java.lang.Object
-
- org.apache.hadoop.mapreduce.Mapper<Text,Writable,Text,NutchWritable>
-
- org.apache.nutch.scoring.webgraph.WebGraph.OutlinkDb.OutlinkDbMapper
-
- Enclosing class:
- WebGraph.OutlinkDb
public static class WebGraph.OutlinkDb.OutlinkDbMapper extends Mapper<Text,Writable,Text,NutchWritable>
Passes through existing LinkDatum objects from an existing OutlinkDb and maps out new LinkDatum objects from new crawls ParseData.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context
-
-
Constructor Summary
Constructors Constructor Description OutlinkDbMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmap(Text key, Writable value, Mapper.Context context)voidsetup(Mapper.Context context)Configures the OutlinkDb job mapper.
-
-
-
Method Detail
-
setup
public void setup(Mapper.Context context)
Configures the OutlinkDb job mapper. Sets up internal links and link limiting.
-
map
public void map(Text key, Writable value, Mapper.Context context) throws IOException, InterruptedException
- Overrides:
mapin classMapper<Text,Writable,Text,NutchWritable>- Throws:
IOExceptionInterruptedException
-
-