Package org.infinispan.query.impl
Class QueryDefinition
java.lang.Object
org.infinispan.query.impl.QueryDefinition
Wraps the query to be executed in a cache represented either as an Ickle query String or as a
SearchQuery
together with parameters and pagination and sort information.- Since:
- 9.2
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionQueryDefinition
(String queryString, org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult.StatementType statementType, org.infinispan.query.dsl.embedded.impl.SearchQueryBuilder searchQueryBuilder, int originalMaxResults) QueryDefinition
(String queryString, org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult.StatementType statementType, SerializableFunction<AdvancedCache<?, ?>, org.infinispan.query.dsl.embedded.impl.QueryEngine<?>> queryEngineProvider, int originalMaxResults) -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
org.infinispan.query.dsl.embedded.impl.SearchQueryBuilder
org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult.StatementType
void
initialize
(AdvancedCache<?, ?> cache) boolean
void
setFirstResult
(int firstResult) void
setHitCountAccuracy
(int hitCountAccuracy) void
setMaxResults
(int maxResults) void
setNamedParameters
(Map<String, Object> params) void
setTimeout
(long timeout, TimeUnit timeUnit)
-
Constructor Details
-
QueryDefinition
public QueryDefinition(String queryString, org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult.StatementType statementType, SerializableFunction<AdvancedCache<?, ?>, org.infinispan.query.dsl.embedded.impl.QueryEngine<?>> queryEngineProvider, int originalMaxResults) -
QueryDefinition
public QueryDefinition(String queryString, org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult.StatementType statementType, org.infinispan.query.dsl.embedded.impl.SearchQueryBuilder searchQueryBuilder, int originalMaxResults)
-
-
Method Details
-
getQueryString
-
getStatementType
public org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult.StatementType getStatementType() -
initialize
-
getSearchQueryBuilder
public org.infinispan.query.dsl.embedded.impl.SearchQueryBuilder getSearchQueryBuilder() -
isCustomMaxResults
public boolean isCustomMaxResults() -
getMaxResults
public int getMaxResults() -
setMaxResults
public void setMaxResults(int maxResults) -
setHitCountAccuracy
public void setHitCountAccuracy(int hitCountAccuracy) -
setNamedParameters
-
setTimeout
-
getNamedParameters
-
getFirstResult
public int getFirstResult() -
setFirstResult
public void setFirstResult(int firstResult) -
failAfter
-