Class QueryConfigurationBuilder
java.lang.Object
org.infinispan.configuration.cache.QueryConfigurationBuilder
- All Implemented Interfaces:
Builder<QueryConfiguration>,ConfigurationChildBuilder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()create()Create the configuration beanDeprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptorsintdefaultMaxResults(int defaultMaxResults) Limits the number of results returned by a query.encoding()protected ConfigurationBuilderinthitCountAccuracy(int hitCountAccuracy) Limit the required accuracy of the hit count for the indexed queries to an upper-bound.indexing()locking()memory()query()read(QueryConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.security()booleansimpleCache(boolean simpleCache) sites()template(boolean template) unsafe()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.configuration.cache.ConfigurationChildBuilder
jmxStatistics, validate
-
Field Details
-
builder
-
-
Constructor Details
-
QueryConfigurationBuilder
-
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<QueryConfiguration>
-
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 performance of queries that don't have an explicit limit set.- Parameters:
defaultMaxResults- The value to apply- Returns:
this, for method chaining
-
defaultMaxResults
public int defaultMaxResults() -
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.- Parameters:
hitCountAccuracy- The value to apply- Returns:
this, for method chaining
-
hitCountAccuracy
public int hitCountAccuracy() -
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<QueryConfiguration>- Returns:
-
read
Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<QueryConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
template
- Specified by:
templatein interfaceConfigurationChildBuilder
-
simpleCache
- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
simpleCache
public boolean simpleCache()- Specified by:
simpleCachein interfaceConfigurationChildBuilder
-
clustering
- Specified by:
clusteringin interfaceConfigurationChildBuilder
-
customInterceptors
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, custom interceptors support will be removed and only modules will be able to define interceptors- Specified by:
customInterceptorsin interfaceConfigurationChildBuilder
-
encoding
- Specified by:
encodingin interfaceConfigurationChildBuilder
-
expiration
- Specified by:
expirationin interfaceConfigurationChildBuilder
-
query
- Specified by:
queryin interfaceConfigurationChildBuilder
-
indexing
- Specified by:
indexingin interfaceConfigurationChildBuilder
-
invocationBatching
- Specified by:
invocationBatchingin interfaceConfigurationChildBuilder
-
statistics
- Specified by:
statisticsin interfaceConfigurationChildBuilder
-
persistence
- Specified by:
persistencein interfaceConfigurationChildBuilder
-
locking
- Specified by:
lockingin interfaceConfigurationChildBuilder
-
security
- Specified by:
securityin interfaceConfigurationChildBuilder
-
transaction
- Specified by:
transactionin interfaceConfigurationChildBuilder
-
unsafe
- Specified by:
unsafein interfaceConfigurationChildBuilder
-
sites
- Specified by:
sitesin interfaceConfigurationChildBuilder
-
memory
- Specified by:
memoryin interfaceConfigurationChildBuilder
-
getBuilder
-
build
- Specified by:
buildin interfaceConfigurationChildBuilder
-