|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.structures.indexing.singlepass.RunIteratorFactory org.terrier.structures.indexing.singlepass.hadoop.HadoopRunIteratorFactory
public class HadoopRunIteratorFactory
Creates a new Iterator over runs which can be used within the Hadoop framework.
Field Summary |
---|
Fields inherited from class org.terrier.structures.indexing.singlepass.RunIteratorFactory |
---|
numberOfFields |
Constructor Summary | |
---|---|
HadoopRunIteratorFactory(java.util.Iterator<MapEmittedPostingList> _postingIterator,
java.lang.Class<? extends PostingInRun> _postingClass,
int numberOfFields)
constructor |
Method Summary | |
---|---|
RunIterator |
createRunIterator(int runNumber)
Open the RunIterator for the specified run number |
void |
setRunPostingIterator(java.util.Iterator<MapEmittedPostingList> _postingIterator)
Update the posting iterator currently being used |
void |
setTerm(java.lang.String _term)
Update the term which is currently being processed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HadoopRunIteratorFactory(java.util.Iterator<MapEmittedPostingList> _postingIterator, java.lang.Class<? extends PostingInRun> _postingClass, int numberOfFields)
_postingIterator
- _postingClass
- numberOfFields
- Method Detail |
---|
public RunIterator createRunIterator(int runNumber) throws java.lang.Exception
RunIteratorFactory
createRunIterator
in class RunIteratorFactory
java.lang.Exception
public void setRunPostingIterator(java.util.Iterator<MapEmittedPostingList> _postingIterator)
public void setTerm(java.lang.String _term)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |