public interface SubqueryCache
JointIndexQuery.Subquery results. Cache entries are manually added using
get(JointIndexQuery.Subquery, Callable) or put(JointIndexQuery.Subquery, List),
and stored in the cache until evicted or invalidated.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the cache which allows the cache to release allocated memory.
|
List<Object> |
get(JointIndexQuery.Subquery query,
Callable<? extends List<Object>> valueLoader)
Returns a list of results.
|
List<Object> |
getIfPresent(JointIndexQuery.Subquery query)
Return a list of results if given query exists in cache, otherwise
return null
|
void |
put(JointIndexQuery.Subquery query,
List<Object> values)
Add given values into cache
|
List<Object> getIfPresent(JointIndexQuery.Subquery query)
query - a subquery of joint index queryvoid put(JointIndexQuery.Subquery query, List<Object> values)
query - a subquery of joint index queryvalues - a list of results to be cachedList<Object> get(JointIndexQuery.Subquery query, Callable<? extends List<Object>> valueLoader) throws Exception
query - a subquery of joint index queryvalueLoader - a callable that returns a list of resultsException - if exception thrown when calling the value loadervoid close()
Copyright © 2012–2023. All rights reserved.