|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.gla.terrier.structures.indexing.singlepass.hadoop.CollectionRecordReader<org.apache.hadoop.mapred.MultiFileSplit>
uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.FileCollectionRecordReader
public class FileCollectionRecordReader
Record Reader for Hadoop Indexing. Reads documents from a file, when one document is empty the next is loaded. Acts like a wrapper around the Terrier Collection Class.
Constructor Summary | |
---|---|
FileCollectionRecordReader(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.mapred.MultiFileSplit split)
Constructor |
Method Summary | |
---|---|
long |
getPos()
Gives the input in the raw, uncompressed stream. |
float |
getProgress()
Returns the progress of the reading |
Methods inherited from class uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.CollectionRecordReader |
---|
close, createKey, createValue, next |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.mapred.RecordReader |
---|
close, createKey, createValue, next |
Constructor Detail |
---|
public FileCollectionRecordReader(org.apache.hadoop.mapred.JobConf jobConf, org.apache.hadoop.mapred.MultiFileSplit split) throws java.io.IOException
jobConf
- - Configurationsplit
- - Input Split (multiple Files)
java.io.IOException
Method Detail |
---|
public long getPos() throws java.io.IOException
getPos
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,Wrapper<Document>>
getPos
in class CollectionRecordReader<org.apache.hadoop.mapred.MultiFileSplit>
java.io.IOException
public float getProgress() throws java.io.IOException
getProgress
in interface org.apache.hadoop.mapred.RecordReader<org.apache.hadoop.io.Text,Wrapper<Document>>
getProgress
in class CollectionRecordReader<org.apache.hadoop.mapred.MultiFileSplit>
java.io.IOException
|
Terrier IR Platform 2.2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |