edu.umd.cloud9.collection
Class XMLInputFormat

java.lang.Object
  extended by org.apache.hadoop.mapred.FileInputFormat<LongWritable,Text>
      extended by org.apache.hadoop.mapred.TextInputFormat
          extended by edu.umd.cloud9.collection.XMLInputFormat
All Implemented Interfaces:
InputFormat<LongWritable,Text>, JobConfigurable

public class XMLInputFormat
extends TextInputFormat


Nested Class Summary
static class XMLInputFormat.XMLRecordReader
           
 
Field Summary
static String END_TAG_KEY
           
static String START_TAG_KEY
           
 
Fields inherited from class org.apache.hadoop.mapred.FileInputFormat
LOG
 
Constructor Summary
XMLInputFormat()
           
 
Method Summary
 void configure(JobConf jobConf)
           
 RecordReader<LongWritable,Text> getRecordReader(InputSplit inputSplit, JobConf jobConf, Reporter reporter)
           
 
Methods inherited from class org.apache.hadoop.mapred.FileInputFormat
addInputPath, addInputPaths, getInputPathFilter, getInputPaths, getSplits, setInputPathFilter, setInputPaths, setInputPaths
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_TAG_KEY

public static final String START_TAG_KEY
See Also:
Constant Field Values

END_TAG_KEY

public static final String END_TAG_KEY
See Also:
Constant Field Values
Constructor Detail

XMLInputFormat

public XMLInputFormat()
Method Detail

configure

public void configure(JobConf jobConf)
Specified by:
configure in interface JobConfigurable
Overrides:
configure in class TextInputFormat

getRecordReader

public RecordReader<LongWritable,Text> getRecordReader(InputSplit inputSplit,
                                                       JobConf jobConf,
                                                       Reporter reporter)
                                                throws IOException
Specified by:
getRecordReader in interface InputFormat<LongWritable,Text>
Overrides:
getRecordReader in class TextInputFormat
Throws:
IOException