org.terrier.applications
Interface TRECQuerying.QueryResultCache

Enclosing class:
TRECQuerying

public static interface TRECQuerying.QueryResultCache

Interface for introducing caching strategies into TRECQuerying


Method Summary
 void add(SearchRequest q)
          Add the results for the specified query to the cache
 ResultSet checkCache(SearchRequest q)
          Returns the ResultSet for the specified query, or null if that query has no cached results.
 void reset()
          Clears the cache
 

Method Detail

checkCache

ResultSet checkCache(SearchRequest q)
Returns the ResultSet for the specified query, or null if that query has no cached results.


add

void add(SearchRequest q)
Add the results for the specified query to the cache


reset

void reset()
Clears the cache



Terrier 3.5. Copyright © 2004-2011 University of Glasgow