edu.umd.cloud9.collection.wikipedia
Class WikipediaPageInputFormat.WikipediaPageRecordReader
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<LongWritable,WikipediaPage>
edu.umd.cloud9.collection.wikipedia.WikipediaPageInputFormat.WikipediaPageRecordReader
- All Implemented Interfaces:
- Closeable
- Enclosing class:
- WikipediaPageInputFormat
public static class WikipediaPageInputFormat.WikipediaPageRecordReader
- extends RecordReader<LongWritable,WikipediaPage>
WikipediaPageInputFormat.WikipediaPageRecordReader
public WikipediaPageInputFormat.WikipediaPageRecordReader()
initialize
public void initialize(InputSplit split,
TaskAttemptContext context)
throws IOException,
InterruptedException
- Specified by:
initialize in class RecordReader<LongWritable,WikipediaPage>
- Throws:
IOException
InterruptedException
getCurrentKey
public LongWritable getCurrentKey()
throws IOException,
InterruptedException
- Specified by:
getCurrentKey in class RecordReader<LongWritable,WikipediaPage>
- Throws:
IOException
InterruptedException
getCurrentValue
public WikipediaPage getCurrentValue()
throws IOException,
InterruptedException
- Specified by:
getCurrentValue in class RecordReader<LongWritable,WikipediaPage>
- Throws:
IOException
InterruptedException
nextKeyValue
public boolean nextKeyValue()
throws IOException,
InterruptedException
- Specified by:
nextKeyValue in class RecordReader<LongWritable,WikipediaPage>
- Throws:
IOException
InterruptedException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in class RecordReader<LongWritable,WikipediaPage>
- Throws:
IOException
getProgress
public float getProgress()
throws IOException,
InterruptedException
- Specified by:
getProgress in class RecordReader<LongWritable,WikipediaPage>
- Throws:
IOException
InterruptedException