org.terrier.applications
Interface TRECQuerying.QuerySource

All Superinterfaces:
java.util.Iterator<java.lang.String>
All Known Implementing Classes:
SingleLineTRECQuery, TRECQuery
Enclosing class:
TRECQuerying

public static interface TRECQuerying.QuerySource
extends java.util.Iterator<java.lang.String>

This interface denotes a source of queries for batch evaluation

Since:
3.0

Method Summary
 java.lang.String[] getInfo()
          Return information about the query source
 java.lang.String getQueryId()
          Returns the query identifier of the last query fetched, or the first one, if none has been fetched yet.
 void reset()
          Resets the query source back to the first query.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getQueryId

java.lang.String getQueryId()
Returns the query identifier of the last query fetched, or the first one, if none has been fetched yet.

Returns:
String the query number of a query.

reset

void reset()
Resets the query source back to the first query.


getInfo

java.lang.String[] getInfo()
Return information about the query source



Terrier 3.5. Copyright © 2004-2011 University of Glasgow