|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.umd.cloud9.collection.trec.TrecDocumentInputFormat.TrecDocumentRecordReader
public static class TrecDocumentInputFormat.TrecDocumentRecordReader
Hadoop RecordReader for reading TREC-formatted documents.
| Constructor Summary | |
|---|---|
TrecDocumentInputFormat.TrecDocumentRecordReader(FileSplit split,
JobConf conf)
Creates a TrecDocumentRecordReader. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this InputSplit. |
LongWritable |
createKey()
Creates an object for the key. |
TrecDocument |
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,
TrecDocument 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 TrecDocumentInputFormat.TrecDocumentRecordReader(FileSplit split,
JobConf conf)
throws IOException
TrecDocumentRecordReader.
IOException| Method Detail |
|---|
public boolean next(LongWritable key,
TrecDocument value)
throws IOException
next in interface RecordReader<LongWritable,TrecDocument>IOExceptionpublic LongWritable createKey()
createKey in interface RecordReader<LongWritable,TrecDocument>public TrecDocument createValue()
createValue in interface RecordReader<LongWritable,TrecDocument>
public long getPos()
throws IOException
getPos in interface RecordReader<LongWritable,TrecDocument>IOException
public void close()
throws IOException
close in interface RecordReader<LongWritable,TrecDocument>IOException
public float getProgress()
throws IOException
getProgress in interface RecordReader<LongWritable,TrecDocument>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||