Interface OutputFormat
-
- All Known Subinterfaces:
RawOutputFormat
- All Known Implementing Classes:
JSONOutputFormat
,LETOROutputFormat
,Normalised2LETOROutputFormat
,NormalisedLETOROutputFormat
,NullOutputFormat
,TRECDocidOutputFormat
,TRECDocnoOutputFormat
,WritableOutputFormat
public interface OutputFormat
interface for adjusting the output of TRECQuerying
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.String
contentType()
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).
-
-
-
Method Detail
-
printResults
void printResults(java.io.PrintWriter pw, SearchRequest q, java.lang.String method, java.lang.String iteration, int numberOfResults) throws java.io.IOException
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).- Throws:
java.io.IOException
-
contentType
default java.lang.String contentType()
-
-