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>
-
Constructor Summary
ConstructorsConstructorDescriptionLuceneSearchScrollImpl(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
-
Constructor Details
-
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 Details
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSearchScroll<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:
-