public abstract class GrowingMapQueryResultCache<K> extends Object implements QueryResultCache
| Constructor and Description | 
|---|
| GrowingMapQueryResultCache() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| protected abstract K | hashQuery(SearchRequest q) | 
| void | reset()Clears the cache | 
public void reset()
QueryResultCachereset in interface QueryResultCacheprotected abstract K hashQuery(SearchRequest q)
public void add(SearchRequest q)
QueryResultCacheadd in interface QueryResultCachepublic ResultSet checkCache(SearchRequest q)
QueryResultCachecheckCache in interface QueryResultCacheTerrier 4.0. Copyright © 2004-2014 University of Glasgow