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 Type
    Method
    Description
    default Iterable<T>
    asIterable(int batchSize)
    Returns Iterable 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

      List<T> fetchNextBatch(int batchSize)
      Returns subsequent batch of results for the query provided when creating this searcher.
    • asIterable

      default Iterable<T> asIterable(int batchSize)
      Returns Iterable fetching subsequent results in batches of the given size. Returned Iterable skips results that were fetched directly using fetchNextBatch(int).