org.terrier.applications
Class TRECQuerying.TRECDocnoOutputFormat

java.lang.Object
  extended by org.terrier.applications.TRECQuerying.TRECDocnoOutputFormat
All Implemented Interfaces:
TRECQuerying.OutputFormat
Enclosing class:
TRECQuerying

public static class TRECQuerying.TRECDocnoOutputFormat
extends java.lang.Object
implements TRECQuerying.OutputFormat

Standard OutputFormat for writing TREC runs


Constructor Summary
TRECQuerying.TRECDocnoOutputFormat(Index _index)
          Create a TRECDocnoOutputFormat using the specified index for looking up the docnos
 
Method Summary
protected  java.lang.String[] obtainDocnos(java.lang.String metaIndexDocumentKey, SearchRequest q, ResultSet set)
          method which extracts the docnos for the prescribed resultset
 void printResults(java.io.PrintWriter pw, SearchRequest q, java.lang.String method, java.lang.String iteration, int _RESULTS_LENGTH)
          Prints the results for the given search request, using the specified destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRECQuerying.TRECDocnoOutputFormat

public TRECQuerying.TRECDocnoOutputFormat(Index _index)
Create a TRECDocnoOutputFormat using the specified index for looking up the docnos

Method Detail

obtainDocnos

protected java.lang.String[] obtainDocnos(java.lang.String metaIndexDocumentKey,
                                          SearchRequest q,
                                          ResultSet set)
                                   throws java.io.IOException
method which extracts the docnos for the prescribed resultset

Throws:
java.io.IOException

printResults

public void printResults(java.io.PrintWriter pw,
                         SearchRequest q,
                         java.lang.String method,
                         java.lang.String iteration,
                         int _RESULTS_LENGTH)
                  throws java.io.IOException
Prints the results for the given search request, using the specified destination.

Specified by:
printResults in interface TRECQuerying.OutputFormat
Parameters:
pw - PrintWriter the destination where to save the results.
q - SearchRequest the object encapsulating the query and the results.
Throws:
java.io.IOException


Terrier 3.5. Copyright © 2004-2011 University of Glasgow