org.terrier.structures.indexing.singlepass
Class FileRunIteratorFactory

java.lang.Object
  extended by org.terrier.structures.indexing.singlepass.RunIteratorFactory
      extended by org.terrier.structures.indexing.singlepass.FileRunIteratorFactory

public class FileRunIteratorFactory
extends RunIteratorFactory

Creates FileRunIterators, using the specificed filenames as the run data files, and the specified class as the type of the postings in the run files


Field Summary
 
Fields inherited from class org.terrier.structures.indexing.singlepass.RunIteratorFactory
numberOfFields
 
Constructor Summary
FileRunIteratorFactory(java.lang.String[][] _files, java.lang.Class<? extends PostingInRun> _postingClass, int numFields)
          constructor
 
Method Summary
 RunIterator createRunIterator(int runNumber)
          Return a RunIterator for the specified runNumber
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileRunIteratorFactory

public FileRunIteratorFactory(java.lang.String[][] _files,
                              java.lang.Class<? extends PostingInRun> _postingClass,
                              int numFields)
constructor

Parameters:
_files -
_postingClass -
numFields -
Method Detail

createRunIterator

public RunIterator createRunIterator(int runNumber)
                              throws java.lang.Exception
Return a RunIterator for the specified runNumber

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


Terrier 3.5. Copyright © 2004-2011 University of Glasgow