|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.terrier.applications.TRECQuerying.TRECDocnoOutputFormat
public static class TRECQuerying.TRECDocnoOutputFormat
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 |
---|
public TRECQuerying.TRECDocnoOutputFormat(Index _index)
Method Detail |
---|
protected java.lang.String[] obtainDocnos(java.lang.String metaIndexDocumentKey, SearchRequest q, ResultSet set) throws java.io.IOException
java.io.IOException
public void printResults(java.io.PrintWriter pw, SearchRequest q, java.lang.String method, java.lang.String iteration, int _RESULTS_LENGTH) throws java.io.IOException
printResults
in interface TRECQuerying.OutputFormat
pw
- PrintWriter the destination where to save the results.q
- SearchRequest the object encapsulating the query and the
results.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |