Package | Description |
---|---|
org.infinispan.query | |
org.infinispan.query.clustered | |
org.infinispan.query.impl |
Modifier and Type | Method and Description |
---|---|
CacheQuery |
CacheQuery.disableFullTextFilter(String name)
Disable a given filter by its name.
|
CacheQuery |
CacheQuery.filter(org.apache.lucene.search.Filter f)
Allows lucene to filter the results.
|
CacheQuery |
CacheQuery.firstResult(int index)
Sets a result with a given index to the first result.
|
CacheQuery |
SearchManager.getClusteredQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... classes)
Experimental!
Use it to try out the newly introduced distributed queries.
|
CacheQuery |
SearchManager.getQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... classes)
This is a simple method that will just return a
CacheQuery , filtered according to a set of classes passed
in. |
CacheQuery |
CacheQuery.maxResults(int numResults)
Sets the maximum number of results to the number passed in as a parameter.
|
CacheQuery |
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"
A projectable field must be stored in the Lucene index and use a
TwoWayFieldBridge
Unless notified in their JavaDoc, all built-in bridges are two-way. |
CacheQuery |
CacheQuery.sort(org.apache.lucene.search.Sort s)
Allows lucene to sort the results.
|
CacheQuery |
CacheQuery.timeout(long timeout,
TimeUnit timeUnit)
Set the timeout for this query.
|
Modifier and Type | Class and Description |
---|---|
class |
ClusteredCacheQueryImpl
A extension of CacheQueryImpl used for distributed queries.
|
Modifier and Type | Method and Description |
---|---|
CacheQuery |
ClusteredCacheQueryImpl.firstResult(int firstResult) |
CacheQuery |
ClusteredCacheQueryImpl.maxResults(int maxResults) |
CacheQuery |
ClusteredCacheQueryImpl.sort(org.apache.lucene.search.Sort sort) |
CacheQuery |
ClusteredCacheQueryImpl.timeout(long timeout,
TimeUnit timeUnit) |
Modifier and Type | Class and Description |
---|---|
class |
CacheQueryImpl
Implementation class of the CacheQuery interface.
|
Modifier and Type | Method and Description |
---|---|
CacheQuery |
CacheQueryImpl.disableFullTextFilter(String name)
Disable a given filter by its name.
|
CacheQuery |
CacheQueryImpl.filter(org.apache.lucene.search.Filter filter)
Takes in a lucene filter and sets it to the filter field in the class.
|
CacheQuery |
CacheQueryImpl.firstResult(int firstResult)
Sets the the result of the given integer value to the first result.
|
CacheQuery |
SearchManagerImpl.getClusteredQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... classes)
This probably should be hided in the getQuery method.
|
CacheQuery |
SearchManagerImpl.getQuery(org.apache.lucene.search.Query luceneQuery,
Class<?>... classes) |
CacheQuery |
CacheQueryImpl.maxResults(int maxResults) |
CacheQuery |
CacheQueryImpl.projection(String... fields) |
CacheQuery |
CacheQueryImpl.sort(org.apache.lucene.search.Sort sort) |
CacheQuery |
CacheQueryImpl.timeout(long timeout,
TimeUnit timeUnit) |
Copyright © 2016 JBoss, a division of Red Hat. All rights reserved.