Class QueryDefinition

java.lang.Object
org.infinispan.query.impl.QueryDefinition

public final class QueryDefinition extends Object
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
  • 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

      public String getQueryString()
    • getStatementType

      public org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult.StatementType getStatementType()
    • initialize

      public void initialize(AdvancedCache<?,?> cache)
    • 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

      public void setNamedParameters(Map<String,Object> params)
    • setTimeout

      public void setTimeout(long timeout, TimeUnit timeUnit)
    • getNamedParameters

      public Map<String,Object> getNamedParameters()
    • getFirstResult

      public int getFirstResult()
    • setFirstResult

      public void setFirstResult(int firstResult)
    • failAfter

      public void failAfter(long timeout, TimeUnit timeUnit)