|
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<SPLITTYPE>
SPLITTYPE
- The subclass of InputSplit that this class should work withpublic abstract class CollectionRecordReader<SPLITTYPE extends org.apache.hadoop.mapred.InputSplit>
An abstract class which provides ways to index a collection, based on a predetermined InputSplit type.
Constructor Summary | |
---|---|
CollectionRecordReader(org.apache.hadoop.mapred.JobConf _jobConf,
SPLITTYPE _split)
|
Method Summary | |
---|---|
void |
close()
Closes the document collection if it exists |
org.apache.hadoop.io.Text |
createKey()
Create a new Key, each key is a Document Number |
Wrapper<Document> |
createValue()
Create a new Text value, each value is a document |
abstract long |
getPos()
Returns the number of bits the recordreader has accessed, thereby giving the position in the input data. |
abstract float |
getProgress()
Returns the progress of the reading |
boolean |
next(org.apache.hadoop.io.Text DocID,
Wrapper<Document> document)
Moves to the next Document in the Collections accessing this InputSplit if one exists, setting DocID to the property "DOCID" and Document to the text within the document. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionRecordReader(org.apache.hadoop.mapred.JobConf _jobConf, SPLITTYPE _split) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void close() throws java.io.IOException
java.io.IOException
public org.apache.hadoop.io.Text createKey()
public Wrapper<Document> createValue()
public abstract long getPos() throws java.io.IOException
java.io.IOException
public abstract float getProgress() throws java.io.IOException
java.io.IOException
public boolean next(org.apache.hadoop.io.Text DocID, Wrapper<Document> document) throws java.io.IOException
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 |