|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.query.impl.CacheQueryImpl
org.infinispan.query.clustered.ClusteredCacheQueryImpl
public class ClusteredCacheQueryImpl
A extension of CacheQueryImpl used for distributed queries.
| Field Summary |
|---|
| Fields inherited from class org.infinispan.query.impl.CacheQueryImpl |
|---|
cache, hSearchQuery, keyTransformationHandler |
| Constructor Summary | |
|---|---|
ClusteredCacheQueryImpl(org.apache.lucene.search.Query luceneQuery,
org.hibernate.search.spi.SearchFactoryIntegrator searchFactory,
ExecutorService asyncExecutor,
AdvancedCache<?,?> cache,
KeyTransformationHandler keyTransformationHandler,
Class<?>... classes)
|
|
| Method Summary | |
|---|---|
int |
getResultSize()
Gets the integer number of results. |
QueryIterator |
iterator(int fetchSize)
Returns the results of a search as a QueryIterator with a given integer parameter - the fetchSize. |
QueryIterator |
lazyIterator(int fetchSize)
Lazily loads the results from the Query as a QueryIterator with a given integer parameter - the
fetchSize. |
List<Object> |
list()
Returns the results of a search as a list. |
CacheQuery |
sort(org.apache.lucene.search.Sort sort)
Allows lucene to sort the results. |
| Methods inherited from class org.infinispan.query.impl.CacheQueryImpl |
|---|
disableFullTextFilter, enableFullTextFilter, explain, filter, firstResult, getFacetManager, iterator, lazyIterator, maxResults, projection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusteredCacheQueryImpl(org.apache.lucene.search.Query luceneQuery,
org.hibernate.search.spi.SearchFactoryIntegrator searchFactory,
ExecutorService asyncExecutor,
AdvancedCache<?,?> cache,
KeyTransformationHandler keyTransformationHandler,
Class<?>... classes)
| Method Detail |
|---|
public CacheQuery sort(org.apache.lucene.search.Sort sort)
CacheQuery
sort in interface CacheQuerysort in class CacheQueryImplsort - - lucene sort objectpublic int getResultSize()
CacheQuery
getResultSize in interface CacheQuerygetResultSize in class CacheQueryImpl
public QueryIterator iterator(int fetchSize)
throws org.hibernate.search.SearchException
CacheQueryQueryIterator with a given integer parameter - the fetchSize.
iterator in interface CacheQueryiterator in class CacheQueryImplfetchSize - integer to be given to the implementation constructor.
org.hibernate.search.SearchExceptionpublic QueryIterator lazyIterator(int fetchSize)
CacheQueryQueryIterator with a given integer parameter - the
fetchSize.
lazyIterator in interface CacheQuerylazyIterator in class CacheQueryImplfetchSize - integer to be passed into the lazy implementation of QueryIterator
public List<Object> list()
throws org.hibernate.search.SearchException
CacheQuery
list in interface CacheQuerylist in class CacheQueryImplorg.hibernate.search.SearchException
|
--> | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||