Class DefaultSearchExpressionEvaluatorCache
- java.lang.Object
-
- com.evolveum.midpoint.util.caching.AbstractThreadLocalCache
-
- com.evolveum.midpoint.model.common.expression.evaluator.caching.AbstractSearchExpressionEvaluatorCache<PrismValue,PrismObject,QueryKey,QueryResult>
-
- com.evolveum.midpoint.model.common.expression.evaluator.caching.DefaultSearchExpressionEvaluatorCache
-
public class DefaultSearchExpressionEvaluatorCache extends AbstractSearchExpressionEvaluatorCache<PrismValue,PrismObject,QueryKey,QueryResult>
Default search expression evaluator cache. Unfinished -- cache invalidation is missing. Currently unused. The (almost) equivalent functionality is provided by global and local repo query cache. TODO eventually remove
-
-
Constructor Summary
Constructors Constructor Description DefaultSearchExpressionEvaluatorCache()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QueryKey
createQueryKey(Class<? extends ObjectType> type, ObjectQuery query, ObjectSearchStrategyType searchStrategy, ExpressionEvaluationContext params, PrismContext prismContext)
protected QueryResult
createQueryResult(List<PrismValue> resultList, List<PrismObject> rawResultList)
static void
enterCache(CacheConfiguration configuration)
static void
exitCache()
static AbstractSearchExpressionEvaluatorCache
getCache()
-
Methods inherited from class com.evolveum.midpoint.model.common.expression.evaluator.caching.AbstractSearchExpressionEvaluatorCache
description, dumpContent, getClientContextInformation, getQueryResult, getSize, putQueryResult, setClientContextInformation
-
Methods inherited from class com.evolveum.midpoint.util.caching.AbstractThreadLocalCache
debugDump, destroy, dumpContent, enter, exists, exit, getConfiguration, getConfiguration, getEntryCount, getTotalSize, isAvailable, registerHit, registerMiss, registerPass, setConfiguration, supportsObjectType, toString
-
-
-
-
Method Detail
-
getCache
public static AbstractSearchExpressionEvaluatorCache getCache()
-
enterCache
public static void enterCache(CacheConfiguration configuration)
-
exitCache
public static void exitCache()
-
createQueryKey
protected QueryKey createQueryKey(Class<? extends ObjectType> type, ObjectQuery query, ObjectSearchStrategyType searchStrategy, ExpressionEvaluationContext params, PrismContext prismContext)
- Specified by:
createQueryKey
in classAbstractSearchExpressionEvaluatorCache<PrismValue,PrismObject,QueryKey,QueryResult>
-
createQueryResult
protected QueryResult createQueryResult(List<PrismValue> resultList, List<PrismObject> rawResultList)
- Specified by:
createQueryResult
in classAbstractSearchExpressionEvaluatorCache<PrismValue,PrismObject,QueryKey,QueryResult>
-
-