|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.wikipedia.WikipediaPageInputFormat.WikipediaPageRecordReader
public static class WikipediaPageInputFormat.WikipediaPageRecordReader
Hadoop RecordReader for reading Wikipedia pages from the
XML dumps.
| Constructor Summary | |
|---|---|
WikipediaPageInputFormat.WikipediaPageRecordReader(FileSplit split,
JobConf conf)
Creates a WikipediaPageRecordReader. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this InputSplit. |
LongWritable |
createKey()
Creates an object for the key. |
WikipediaPage |
createValue()
Creates an object for the value. |
long |
getPos()
Returns the current position in the input. |
float |
getProgress()
Returns progress on how much input has been consumed. |
boolean |
next(LongWritable key,
WikipediaPage value)
Reads the next key-value pair. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikipediaPageInputFormat.WikipediaPageRecordReader(FileSplit split,
JobConf conf)
throws IOException
WikipediaPageRecordReader.
IOException| Method Detail |
|---|
public boolean next(LongWritable key,
WikipediaPage value)
throws IOException
next in interface RecordReader<LongWritable,WikipediaPage>IOExceptionpublic LongWritable createKey()
createKey in interface RecordReader<LongWritable,WikipediaPage>public WikipediaPage createValue()
createValue in interface RecordReader<LongWritable,WikipediaPage>
public long getPos()
throws IOException
getPos in interface RecordReader<LongWritable,WikipediaPage>IOException
public void close()
throws IOException
close in interface RecordReader<LongWritable,WikipediaPage>IOException
public float getProgress()
throws IOException
getProgress in interface RecordReader<LongWritable,WikipediaPage>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||