public class XMLInputFormatOld
extends org.apache.hadoop.mapred.TextInputFormat
InputFormat for XML documents (org.apache.hadoop.mapred API). The class recognizes begin-of-document and end-of-document tags
only: everything between those delimiting tags is returned in an uninterpreted Text
object.| Modifier and Type | Class and Description |
|---|---|
static class |
XMLInputFormatOld.XMLRecordReader
Simple
RecordReader for XML documents (org.apache.hadoop.mapred API). |
| Modifier and Type | Field and Description |
|---|---|
static String |
END_TAG_KEY |
static String |
START_TAG_KEY |
| Constructor and Description |
|---|
XMLInputFormatOld() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.hadoop.mapred.JobConf jobConf) |
org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> |
getRecordReader(org.apache.hadoop.mapred.InputSplit inputSplit,
org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapred.Reporter reporter) |
public static final String START_TAG_KEY
public static final String END_TAG_KEY
public void configure(org.apache.hadoop.mapred.JobConf jobConf)
configure in interface org.apache.hadoop.mapred.JobConfigurableconfigure in class org.apache.hadoop.mapred.TextInputFormatpublic org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text> getRecordReader(org.apache.hadoop.mapred.InputSplit inputSplit,
org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapred.Reporter reporter)
throws IOException
getRecordReader in interface org.apache.hadoop.mapred.InputFormat<org.apache.hadoop.io.LongWritable,org.apache.hadoop.io.Text>getRecordReader in class org.apache.hadoop.mapred.TextInputFormatIOExceptionCopyright © 2015. All rights reserved.