public interface QueryCompilationCache
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.
|
void close()
void evict(String queryKey)
queryKey
- Key for the query to evict.void clear()
boolean isEmpty()
int size()
QueryCompilation get(String queryKey)
queryKey
- The query keyQueryCompilation put(String queryKey, QueryCompilation compilation)
queryKey
- The query keycompilation
- The compilation to cacheboolean contains(String queryKey)
queryKey
- The query keyCopyright © 2019. All rights reserved.