org.terrier.applications
Class TRECQuerying.TRECDocidOutputFormat

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

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

OutputFormat for writing TREC runs where the docnos are NOT looked up, but instead the (integer, internal) docids are recorded in the .res file.


Constructor Summary
TRECQuerying.TRECDocidOutputFormat(Index index)
          Creates a new TRECDocidOutputFormat.
 
Method Summary
 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.TRECDocidOutputFormat

public TRECQuerying.TRECDocidOutputFormat(Index index)
Creates a new TRECDocidOutputFormat. The index object is ignored

Method Detail

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