Package org.apache.nutch.tools.arc
Class ArcSegmentCreator.ArcSegmentCreatorMapper
java.lang.Object
org.apache.hadoop.mapreduce.Mapper<Text,BytesWritable,Text,NutchWritable>
org.apache.nutch.tools.arc.ArcSegmentCreator.ArcSegmentCreatorMapper
- Enclosing class:
- ArcSegmentCreator
public static class ArcSegmentCreator.ArcSegmentCreatorMapper
extends Mapper<Text,BytesWritable,Text,NutchWritable>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Mapper
Mapper.Context -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmap(Text key, BytesWritable bytes, Mapper<Text, BytesWritable, Text, NutchWritable>.Context context) Runs the Map job to translate an arc record into output for Nutch segments.voidsetup(Mapper<Text, BytesWritable, Text, NutchWritable>.Context context) Configures the job mapper.
-
Field Details
-
URL_VERSION
- See Also:
-
-
Constructor Details
-
ArcSegmentCreatorMapper
public ArcSegmentCreatorMapper()
-
-
Method Details
-
setup
Configures the job mapper. Sets the url filters, scoring filters, url normalizers and other relevant data.- Overrides:
setupin classMapper<Text,BytesWritable, Text, NutchWritable> - Parameters:
context- The task context.
-
map
public void map(Text key, BytesWritable bytes, Mapper<Text, BytesWritable, throws IOException, InterruptedExceptionText, NutchWritable>.Context context) Runs the Map job to translate an arc record into output for Nutch segments.- Overrides:
mapin classMapper<Text,BytesWritable, Text, NutchWritable> - Parameters:
key- The arc record header.bytes- The arc record raw content bytes.context- The context of the mapreduce job.- Throws:
IOExceptionInterruptedException
-