public class TRECDocnoOutputFormat extends Object implements OutputFormat
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger
The logger used
|
Constructor and Description |
---|
TRECDocnoOutputFormat(Index _index)
Create a TRECDocnoOutputFormat using the specified index for
looking up the docnos
|
Modifier and Type | Method and Description |
---|---|
protected String[] |
obtainDocnos(String metaIndexDocumentKey,
SearchRequest q,
ResultSet set)
method which extracts the docnos for the prescribed resultset
|
void |
printResults(PrintWriter pw,
SearchRequest q,
String method,
String iteration,
int _RESULTS_LENGTH)
Prints the results for the given search request, using the specified
destination.
|
public TRECDocnoOutputFormat(Index _index)
protected String[] obtainDocnos(String metaIndexDocumentKey, SearchRequest q, ResultSet set) throws IOException
IOException
public void printResults(PrintWriter pw, SearchRequest q, String method, String iteration, int _RESULTS_LENGTH) throws IOException
printResults
in interface OutputFormat
pw
- PrintWriter the destination where to save the results.q
- SearchRequest the object encapsulating the query and the
results.IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow