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 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
-
reset
public void reset()
Description copied from interface:QueryResultCacheClears the cache- Specified by:
resetin interfaceQueryResultCache
-
add
public void add(SearchRequest q)
Description copied from interface:QueryResultCacheAdd the results for the specified query to the cache- Specified by:
addin interfaceQueryResultCache
-
checkCache
public ResultSet checkCache(SearchRequest q)
Description copied from interface:QueryResultCacheReturns the ResultSet for the specified query, or null if that query has no cached results.- Specified by:
checkCachein interfaceQueryResultCache
-
-