Package org.infinispan.query.core.impl
Class QueryCache
java.lang.Object
org.infinispan.query.core.impl.QueryCache
A local cache for 'parsed' queries. Each cache manager has at most one QueryCache which is backed by a lazily created
Cache.
- Since:
- 7.0
- Author:
- anistor@redhat.com
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringUsers can define a cache configuration with this name if they need to fine tune query caching. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
QUERY_CACHE_NAME
Users can define a cache configuration with this name if they need to fine tune query caching. If they do not do so a default config is used (seegetQueryCacheConfig()).- See Also:
-
-
Constructor Details
-
QueryCache
public QueryCache()
-
-
Method Details
-
get
public <T> T get(String cacheName, String queryString, List<org.infinispan.objectfilter.impl.aggregation.FieldAccumulator> accumulators, Object queryTypeDiscriminator, QueryCache.QueryCreator<T> queryCreator) Gets the cached query object. The key used for lookup is an object pair containing the query string and a discriminator value which is usually the Class of the cached query object and an optionalListofFieldAccumulators. -
clear
public void clear() -
clear
-