public class AbstractQueryDatastoreCompilationCache extends Object implements QueryDatastoreCompilationCache
| Constructor and Description |
|---|
AbstractQueryDatastoreCompilationCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Method to clear the cache.
|
void |
close()
Method to close the cache when no longer needed.
|
boolean |
contains(String queryKey)
Accessor for whether the specified query is in the cache
|
void |
evict(String queryKey)
Evict the query from the compilation cache.
|
Object |
get(String queryKey)
Accessor for a (generic) compilation from the cache.
|
boolean |
isEmpty()
Accessor for whether the cache is empty.
|
Object |
put(String queryKey,
Object compilation)
Method to put an object in the cache.
|
int |
size()
Accessor for the total number of compilations in the query cache.
|
public AbstractQueryDatastoreCompilationCache()
public void clear()
QueryDatastoreCompilationCacheclear in interface QueryDatastoreCompilationCachepublic void close()
QueryDatastoreCompilationCacheclose in interface QueryDatastoreCompilationCachepublic boolean contains(String queryKey)
QueryDatastoreCompilationCachecontains in interface QueryDatastoreCompilationCachequeryKey - The query keypublic void evict(String queryKey)
QueryDatastoreCompilationCacheevict in interface QueryDatastoreCompilationCachequeryKey - Key for the query to evict.public Object get(String queryKey)
QueryDatastoreCompilationCacheget in interface QueryDatastoreCompilationCachequeryKey - The query keypublic boolean isEmpty()
QueryDatastoreCompilationCacheisEmpty in interface QueryDatastoreCompilationCachepublic Object put(String queryKey, Object compilation)
QueryDatastoreCompilationCacheput in interface QueryDatastoreCompilationCachequeryKey - The query keycompilation - The compilation for this datastorepublic int size()
QueryDatastoreCompilationCachesize in interface QueryDatastoreCompilationCacheCopyright © 2013. All Rights Reserved.