Uses of Interface
org.infinispan.query.CacheQuery
-
Packages that use CacheQuery Package Description org.infinispan.query Query API.org.infinispan.query.clustered org.infinispan.query.dsl.embedded.impl Query DSL implementation internals.org.infinispan.query.impl Query module internals.org.infinispan.query.spi -
-
Uses of CacheQuery in org.infinispan.query
Methods in org.infinispan.query that return CacheQuery Modifier and Type Method Description CacheQuery<E>
CacheQuery. disableFullTextFilter(String name)
Disable a given filter by its name.CacheQuery<E>
CacheQuery. filter(org.apache.lucene.search.Filter f)
Allows lucene to filter the results.CacheQuery<E>
CacheQuery. firstResult(int index)
Sets a result with a given index to the first result.<E> CacheQuery<E>
SearchManager. getClusteredQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... classes)
Deprecated.since 9.2, to be removed in 10.0; equivalent togetQuery(luceneQuery, IndexedQueryMode.BROADCAST, classes)
<E> CacheQuery<E>
SearchManager. getQuery(String queryString, IndexedQueryMode indexedQueryMode, Class<?>... classes)
Builds aCacheQuery
from an Ickle query string.<E> CacheQuery<E>
SearchManager. getQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... classes)
<E> CacheQuery<E>
SearchManager. getQuery(org.apache.lucene.search.Query luceneQuery, IndexedQueryMode indexedQueryMode, Class<?>... classes)
This is a simple method that will just return aCacheQuery
, filtered according to a set of classes passed in.CacheQuery<E>
CacheQuery. maxResults(int numResults)
Sets the maximum number of results to the number passed in as a parameter.CacheQuery<Object[]>
CacheQuery. projection(String... fields)
Defines the Lucene field names projected and returned in a query result Each field is converted back to it's object representation, an Object[] being returned for each "row"CacheQuery<E>
CacheQuery. sort(org.apache.lucene.search.Sort s)
Allows lucene to sort the results.CacheQuery<E>
CacheQuery. timeout(long timeout, TimeUnit timeUnit)
Set the timeout for this query. -
Uses of CacheQuery in org.infinispan.query.clustered
Classes in org.infinispan.query.clustered that implement CacheQuery Modifier and Type Class Description class
ClusteredCacheQueryImpl<E>
An extension of CacheQueryImpl used for distributed queries.Methods in org.infinispan.query.clustered that return CacheQuery Modifier and Type Method Description CacheQuery<E>
ClusteredCacheQueryImpl. firstResult(int firstResult)
CacheQuery<E>
ClusteredCacheQueryImpl. maxResults(int maxResults)
CacheQuery<E>
ClusteredCacheQueryImpl. timeout(long timeout, TimeUnit timeUnit)
-
Uses of CacheQuery in org.infinispan.query.dsl.embedded.impl
Methods in org.infinispan.query.dsl.embedded.impl that return CacheQuery Modifier and Type Method Description <E> CacheQuery<E>
QueryEngine. buildCacheQuery(String queryString, IndexedQueryMode indexedQueryMode, KeyTransformationHandler keyTransformationHandler, org.hibernate.search.query.engine.spi.TimeoutExceptionFactory timeoutExceptionFactory, ExecutorService asyncExecutor, Class<?>... classes)
<E> CacheQuery<E>
QueryEngine. buildCacheQuery(org.apache.lucene.search.Query luceneQuery, IndexedQueryMode indexedQueryMode, KeyTransformationHandler keyTransformationHandler, org.hibernate.search.query.engine.spi.TimeoutExceptionFactory timeoutExceptionFactory, ExecutorService asyncExecutor, Class<?>... classes)
<E> CacheQuery<E>
QueryEngine. buildCacheQuery(QueryDefinition queryDefinition, IndexedQueryMode indexedQueryMode, KeyTransformationHandler keyTransformationHandler, org.hibernate.search.query.engine.spi.TimeoutExceptionFactory timeoutExceptionFactory, ExecutorService asyncExecutor, org.hibernate.search.spi.IndexedTypeMap<org.hibernate.search.spi.CustomTypeMetadata> indexedTypeMap)
protected <E> CacheQuery<E>
QueryEngine. buildLuceneQuery(org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult<TypeMetadata> ickleParsingResult, Map<String,Object> namedParameters, long startOffset, int maxResults)
protected <E> CacheQuery<E>
QueryEngine. buildLuceneQuery(org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult<TypeMetadata> ickleParsingResult, Map<String,Object> namedParameters, long startOffset, int maxResults, IndexedQueryMode queryMode)
Build a Lucene index query.protected CacheQuery<?>
QueryEngine. makeCacheQuery(org.infinispan.objectfilter.impl.syntax.parser.IckleParsingResult<TypeMetadata> ickleParsingResult, org.apache.lucene.search.Query luceneQuery, IndexedQueryMode queryMode, Map<String,Object> namedParameters)
-
Uses of CacheQuery in org.infinispan.query.impl
Classes in org.infinispan.query.impl that implement CacheQuery Modifier and Type Class Description class
CacheQueryImpl<E>
Implementation class of the CacheQuery interface.Methods in org.infinispan.query.impl that return CacheQuery Modifier and Type Method Description CacheQuery<E>
CacheQueryImpl. disableFullTextFilter(String name)
Disable a given filter by its name.CacheQuery<E>
CacheQueryImpl. filter(org.apache.lucene.search.Filter filter)
Takes in a lucene filter and sets it to the filter field in the class.CacheQuery<E>
CacheQueryImpl. firstResult(int firstResult)
Sets the the result of the given integer value to the first result.<E> CacheQuery<E>
SearchManagerImpl. getClusteredQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... classes)
Deprecated.<E> CacheQuery<E>
SearchManagerImpl. getQuery(String queryString, IndexedQueryMode indexedQueryMode, Class<?>... classes)
<E> CacheQuery<E>
SearchManagerImpl. getQuery(org.apache.lucene.search.Query luceneQuery, Class<?>... classes)
<E> CacheQuery<E>
SearchManagerImpl. getQuery(org.apache.lucene.search.Query luceneQuery, IndexedQueryMode indexedQueryMode, Class<?>... classes)
<E> CacheQuery<E>
SearchManagerImpl. getQuery(org.hibernate.search.query.engine.spi.HSQuery hSearchQuery, IndexedQueryMode queryMode)
Internal and experimental! Creates aCacheQuery
, filtered according to the givenHSQuery
.<E> CacheQuery<E>
SearchManagerImpl. getQuery(QueryDefinition queryDefinition, IndexedQueryMode indexedQueryMode, org.hibernate.search.spi.IndexedTypeMap<org.hibernate.search.spi.CustomTypeMetadata> indexedTypeMap)
CacheQuery<E>
CacheQueryImpl. maxResults(int maxResults)
CacheQuery<Object[]>
CacheQueryImpl. projection(String... fields)
CacheQuery<E>
CacheQueryImpl. sort(org.apache.lucene.search.Sort sort)
CacheQuery<E>
CacheQueryImpl. timeout(long timeout, TimeUnit timeUnit)
-
Uses of CacheQuery in org.infinispan.query.spi
Methods in org.infinispan.query.spi that return CacheQuery Modifier and Type Method Description <E> CacheQuery<E>
SearchManagerImplementor. getQuery(QueryDefinition queryDefinition, IndexedQueryMode indexedQueryMode, org.hibernate.search.spi.IndexedTypeMap<org.hibernate.search.spi.CustomTypeMetadata> indexedTypeMap)
Creates a cache query based on aQueryDefinition
and a custom metadata.
-