|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 CacheQuery
sort
in class CacheQueryImpl
sort
- - lucene sort objectpublic int getResultSize()
CacheQuery
getResultSize
in interface CacheQuery
getResultSize
in class CacheQueryImpl
public QueryIterator iterator(int fetchSize) throws org.hibernate.search.SearchException
CacheQuery
QueryIterator
with a given integer parameter - the fetchSize.
iterator
in interface CacheQuery
iterator
in class CacheQueryImpl
fetchSize
- integer to be given to the implementation constructor.
org.hibernate.search.SearchException
public QueryIterator lazyIterator(int fetchSize)
CacheQuery
QueryIterator
with a given integer parameter - the
fetchSize.
lazyIterator
in interface CacheQuery
lazyIterator
in class CacheQueryImpl
fetchSize
- integer to be passed into the lazy implementation of QueryIterator
public List<Object> list() throws org.hibernate.search.SearchException
CacheQuery
list
in interface CacheQuery
list
in class CacheQueryImpl
org.hibernate.search.SearchException
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |