Interface PagedSearcher<T>
- All Known Implementing Classes:
PagedSearcherImpl
@ExperimentalApi
public interface PagedSearcher<T>
Interface for iterating over search results with paged approach.
-
Method Summary
Modifier and TypeMethodDescriptionasIterable
(int batchSize) ReturnsIterable
fetching subsequent results in batches of the given size.fetchNextBatch
(int batchSize) Returns subsequent batch of results for the query provided when creating this searcher.
-
Method Details
-
fetchNextBatch
Returns subsequent batch of results for the query provided when creating this searcher. -
asIterable
ReturnsIterable
fetching subsequent results in batches of the given size. ReturnedIterable
skips results that were fetched directly usingfetchNextBatch(int)
.
-