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