edu.umd.cloud9.collection.wikipedia
Class WikipediaPageInputFormatOld

java.lang.Object
  extended by org.apache.hadoop.mapred.FileInputFormat<K,V>
      extended by edu.umd.cloud9.collection.IndexableFileInputFormatOld<LongWritable,WikipediaPage>
          extended by edu.umd.cloud9.collection.wikipedia.WikipediaPageInputFormatOld
All Implemented Interfaces:
InputFormat<LongWritable,WikipediaPage>

public class WikipediaPageInputFormatOld
extends IndexableFileInputFormatOld<LongWritable,WikipediaPage>

Hadoop InputFormat for processing Wikipedia pages from the XML dumps.

Author:
Jimmy Lin, Peter Exner

Nested Class Summary
static class WikipediaPageInputFormatOld.WikipediaPageRecordReader
          Hadoop RecordReader for reading Wikipedia pages from the XML dumps.
 
Field Summary
 
Fields inherited from class org.apache.hadoop.mapred.FileInputFormat
LOG, NUM_INPUT_FILES
 
Constructor Summary
WikipediaPageInputFormatOld()
           
 
Method Summary
 RecordReader<LongWritable,WikipediaPage> getRecordReader(InputSplit inputSplit, JobConf conf, Reporter reporter)
          Returns a RecordReader for this InputFormat.
 
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
 

Constructor Detail

WikipediaPageInputFormatOld

public WikipediaPageInputFormatOld()
Method Detail

getRecordReader

public RecordReader<LongWritable,WikipediaPage> getRecordReader(InputSplit inputSplit,
                                                                JobConf conf,
                                                                Reporter reporter)
                                                         throws IOException
Returns a RecordReader for this InputFormat.

Specified by:
getRecordReader in interface InputFormat<LongWritable,WikipediaPage>
Specified by:
getRecordReader in class FileInputFormat<LongWritable,WikipediaPage>
Throws:
IOException