Package org.terrier.structures.cache
Class NullQueryResultCache
- java.lang.Object
-
- org.terrier.structures.cache.NullQueryResultCache
-
- All Implemented Interfaces:
QueryResultCache
public class NullQueryResultCache extends java.lang.Object implements QueryResultCache
Do nothing QueryResultCache
-
-
Constructor Summary
Constructors Constructor Description NullQueryResultCache()
-
Method Summary
All Methods Instance Methods Concrete 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
-
reset
public void reset()
Description copied from interface:QueryResultCache
Clears the cache- Specified by:
reset
in interfaceQueryResultCache
-
add
public void add(SearchRequest q)
Description copied from interface:QueryResultCache
Add the results for the specified query to the cache- Specified by:
add
in interfaceQueryResultCache
-
checkCache
public ResultSet checkCache(SearchRequest q)
Description copied from interface:QueryResultCache
Returns the ResultSet for the specified query, or null if that query has no cached results.- Specified by:
checkCache
in interfaceQueryResultCache
-
-