Class LuceneSearchScrollImpl<H>
- java.lang.Object
-
- org.hibernate.search.backend.lucene.search.query.impl.LuceneSearchScrollImpl<H>
-
- All Implemented Interfaces:
AutoCloseable,LuceneSearchScroll<H>,ExtendedSearchScroll<H,LuceneSearchScrollResult<H>>,SearchScroll<H>
public class LuceneSearchScrollImpl<H> extends Object implements LuceneSearchScroll<H>
-
-
Constructor Summary
Constructors Constructor Description LuceneSearchScrollImpl(LuceneSyncWorkOrchestrator queryOrchestrator, LuceneWorkFactory workFactory, LuceneSearchQueryIndexScope<?> scope, Set<String> routingKeys, TimeoutManager timeoutManager, LuceneSearcher<LuceneLoadableSearchResult<H>,LuceneExtractableSearchResult<H>> searcher, int totalHitCountThreshold, HibernateSearchMultiReader indexReader, int chunkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()LuceneSearchScrollResult<H>next()Returns the next chunk, with at mostchunkSizehits.
-
-
-
Constructor Detail
-
LuceneSearchScrollImpl
public LuceneSearchScrollImpl(LuceneSyncWorkOrchestrator queryOrchestrator, LuceneWorkFactory workFactory, LuceneSearchQueryIndexScope<?> scope, Set<String> routingKeys, TimeoutManager timeoutManager, LuceneSearcher<LuceneLoadableSearchResult<H>,LuceneExtractableSearchResult<H>> searcher, int totalHitCountThreshold, HibernateSearchMultiReader indexReader, int chunkSize)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSearchScroll<H>
-
next
public LuceneSearchScrollResult<H> next()
Description copied from interface:SearchScrollReturns the next chunk, with at mostchunkSizehits.May return a result with less than
chunkSizeelements if only that many hits are left.- Specified by:
nextin interfaceExtendedSearchScroll<H,LuceneSearchScrollResult<H>>- Specified by:
nextin interfaceSearchScroll<H>- Returns:
- The next
SearchScrollResult. - See Also:
SearchFetchable.scroll(int)
-
-