Class QueryConfiguration
java.lang.Object
org.infinispan.commons.configuration.attributes.ConfigurationElement<QueryConfiguration>
org.infinispan.configuration.cache.QueryConfiguration
- All Implemented Interfaces:
Matchable<QueryConfiguration>
,Updatable<QueryConfiguration>
Configures query options and defaults
-
Field Summary
Modifier and TypeFieldDescriptionstatic final AttributeDefinition
<Integer> static final AttributeDefinition
<Integer> Fields inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, CHILDLESS, children, element, repeated
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Limits the number of results returned by a query.int
Limit the required accuracy of the hit count for the indexed queries to an upper-bound.Methods inherited from class org.infinispan.commons.configuration.attributes.ConfigurationElement
attributes, child, children, children, elementName, equals, findAttribute, hashCode, isModified, list, matches, toString, update, validateUpdate, write
-
Field Details
-
DEFAULT_MAX_RESULTS
-
HIT_COUNT_ACCURACY
-
-
Constructor Details
-
QueryConfiguration
-
-
Method Details
-
defaultMaxResults
public int defaultMaxResults()Limits the number of results returned by a query. Applies to indexed, non-indexed, and hybrid queries. Setting the default-max-results significantly improves the performance of queries that don't have an explicit limit set. -
hitCountAccuracy
public int hitCountAccuracy()Limit the required accuracy of the hit count for the indexed queries to an upper-bound. Setting the hit-count-accuracy could improve the performance of queries targeting large data sets. For optimal performances set this value not much above the expected hit count. If you do not require accurate hit counts, set it to a low value.
-