Class WritableOutputFormat
- java.lang.Object
-
- org.terrier.structures.outputformat.WritableOutputFormat
-
- All Implemented Interfaces:
OutputFormat
,RawOutputFormat
public class WritableOutputFormat extends java.lang.Object implements RawOutputFormat
This class can be used for writingFatResultSet
s to disk for later use byFatResultsMatching
- Since:
- 4.0
- Author:
- Craig Macdonald
-
-
Constructor Summary
Constructors Constructor Description WritableOutputFormat(Index i)
Created a new NullOuputFormat
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
printResults(java.io.PrintWriter pw, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults)
Outputs the results of query q to PrintWriter pw, described by the method, iteration, and the specified limit on the number of results (0 means no limit).void
writeResults(java.io.OutputStream os, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.terrier.structures.outputformat.OutputFormat
contentType
-
-
-
-
Constructor Detail
-
WritableOutputFormat
public WritableOutputFormat(Index i)
Created a new NullOuputFormat
-
-
Method Detail
-
printResults
public void printResults(java.io.PrintWriter pw, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults) throws java.io.IOException
Description copied from interface:OutputFormat
Outputs the results of query q to PrintWriter pw, described by the method, iteration, and the specified limit on the number of results (0 means no limit).- Specified by:
printResults
in interfaceOutputFormat
- Throws:
java.io.IOException
-
writeResults
public void writeResults(java.io.OutputStream os, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults) throws java.io.IOException
- Specified by:
writeResults
in interfaceRawOutputFormat
- Throws:
java.io.IOException
-
-