public class EmptySubqueryCache extends Object implements SubqueryCache
| 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
|
static EmptySubqueryCache |
getInstance() |
void |
put(JointIndexQuery.Subquery query,
List<Object> values)
Add given values into cache
|
public static EmptySubqueryCache getInstance()
public List<Object> getIfPresent(JointIndexQuery.Subquery query)
SubqueryCachegetIfPresent in interface SubqueryCachequery - a subquery of joint index querypublic void put(JointIndexQuery.Subquery query, List<Object> values)
SubqueryCacheput in interface SubqueryCachequery - a subquery of joint index queryvalues - a list of results to be cachedpublic List<Object> get(JointIndexQuery.Subquery query, Callable<? extends List<Object>> valueLoader) throws Exception
SubqueryCacheget in interface SubqueryCachequery - a subquery of joint index queryvalueLoader - a callable that returns a list of resultsException - if exception thrown when calling the value loaderpublic void close()
SubqueryCacheclose in interface SubqueryCacheCopyright © 2012–2023. All rights reserved.