Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures.indexing.singlepass.hadoop
Class HadoopRunIteratorFactory

java.lang.Object
  extended by uk.ac.gla.terrier.structures.indexing.singlepass.RunIteratorFactory
      extended by uk.ac.gla.terrier.structures.indexing.singlepass.hadoop.HadoopRunIteratorFactory

public class HadoopRunIteratorFactory
extends RunIteratorFactory

Creates a new HadoopRunIterator.

Since:
2.2
Version:
$Revision: 1.2 $
Author:
Craig Macdonald

Constructor Summary
HadoopRunIteratorFactory(java.util.Iterator<MapEmittedPostingList> _postingIterator, java.lang.Class<? extends PostingInRun> _postingClass)
           
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopRunIteratorFactory

public HadoopRunIteratorFactory(java.util.Iterator<MapEmittedPostingList> _postingIterator,
                                java.lang.Class<? extends PostingInRun> _postingClass)
Method Detail

createRunIterator

public RunIterator createRunIterator(int runNumber)
                              throws java.lang.Exception
Description copied from class: RunIteratorFactory
Open the RunIterator for the specified run number

Specified by:
createRunIterator in class RunIteratorFactory
Throws:
java.lang.Exception

setRunPostingIterator

public void setRunPostingIterator(java.util.Iterator<MapEmittedPostingList> _postingIterator)
Update the posting iterator currently being used


setTerm

public void setTerm(java.lang.String _term)
Update the term which is currently being processed


Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow