public class QueryResultCacheImpl extends Object implements QueryResultCache
| Constructor and Description |
|---|
QueryResultCacheImpl(QueryCache cache)
Constructor; supply delegate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
void |
evict(Query q)
Evict a query result from the cache.
|
void |
evictAll()
Clear the cache.
|
void |
evictAll(Class cls)
Evict all result for queries involving the given class.
|
QueryCache |
getDelegate()
Delegate.
|
int |
hashCode() |
void |
pin(Query q)
Pin the given query's result to the cache.
|
void |
unpin(Query q)
Unpin a previously-pinned query result.
|
public QueryResultCacheImpl(QueryCache cache)
public QueryCache getDelegate()
getDelegate in interface QueryResultCachepublic void pin(Query q)
QueryResultCachepin in interface QueryResultCachepublic void unpin(Query q)
QueryResultCacheunpin in interface QueryResultCachepublic void evict(Query q)
QueryResultCacheevict in interface QueryResultCachepublic void evictAll()
QueryResultCacheevictAll in interface QueryResultCachepublic void evictAll(Class cls)
QueryResultCacheevictAll in interface QueryResultCacheCopyright © 2006–2017 Apache Software Foundation. All rights reserved.