public class XMLParserMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,BlockInfo>
| Constructor | Description |
|---|---|
XMLParserMapper() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
map(org.apache.hadoop.io.LongWritable lineNum,
org.apache.hadoop.io.Text line,
org.apache.hadoop.mapreduce.Mapper.Context context) |
Read the input XML file line by line, and generate list of blocks.
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context) |
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
setup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,BlockInfo>public void map(org.apache.hadoop.io.LongWritable lineNum,
org.apache.hadoop.io.Text line,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.InterruptedException
XMLParser. This mapper just
delegates to that class and then writes the blocks to the corresponding
index to be processed by reducers.map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable,BlockInfo>java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.