public abstract class AbstractQueryCompilationCache extends Object implements QueryCompilationCache
| Constructor and Description |
|---|
AbstractQueryCompilationCache() |
| 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.
|
QueryCompilation |
get(String queryKey)
Accessor for a (generic) compilation from the cache.
|
boolean |
isEmpty()
Accessor for whether the cache is empty.
|
QueryCompilation |
put(String queryKey,
QueryCompilation compilation)
Method to put an object in the cache.
|
int |
size()
Accessor for the total number of compilations in the query cache.
|
public void clear()
QueryCompilationCacheclear in interface QueryCompilationCachepublic void close()
QueryCompilationCacheclose in interface QueryCompilationCachepublic boolean contains(String queryKey)
QueryCompilationCachecontains in interface QueryCompilationCachequeryKey - The query keypublic void evict(String queryKey)
QueryCompilationCacheevict in interface QueryCompilationCachequeryKey - Key for the query to evict.public QueryCompilation get(String queryKey)
QueryCompilationCacheget in interface QueryCompilationCachequeryKey - The query keypublic boolean isEmpty()
QueryCompilationCacheisEmpty in interface QueryCompilationCachepublic QueryCompilation put(String queryKey, QueryCompilation compilation)
QueryCompilationCacheput in interface QueryCompilationCachequeryKey - The query keycompilation - The compilation to cachepublic int size()
QueryCompilationCachesize in interface QueryCompilationCacheCopyright © 2019. All rights reserved.