Package org.terrier.structures.cache
Interface QueryResultCache
-
- All Known Implementing Classes:
GrowingMapQueryResultCache,GrowingMapQueryStringResultCache,NullQueryResultCache
public interface QueryResultCacheInterface for introducing caching strategies into TRECQuerying
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(SearchRequest q)Add the results for the specified query to the cacheResultSetcheckCache(SearchRequest q)Returns the ResultSet for the specified query, or null if that query has no cached results.voidreset()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
-
-