Package org.terrier.structures.cache
Interface QueryResultCache
-
- All Known Implementing Classes:
GrowingMapQueryResultCache
,GrowingMapQueryStringResultCache
,NullQueryResultCache
public interface QueryResultCache
Interface for introducing caching strategies into TRECQuerying
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(SearchRequest q)
Add the results for the specified query to the cacheResultSet
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
-
-