Class SuggestPagedIterable

java.lang.Object
com.azure.core.util.IterableStream<T>
com.azure.core.util.paging.ContinuablePagedIterable<String,T,P>
com.azure.core.http.rest.PagedIterableBase<SuggestResult,SuggestPagedResponse>
com.azure.search.documents.util.SuggestPagedIterable
All Implemented Interfaces:
Iterable<SuggestResult>

public final class SuggestPagedIterable extends com.azure.core.http.rest.PagedIterableBase<SuggestResult,SuggestPagedResponse>
Implementation of PagedIterableBase where the element type is SuggestResult and the page type is SuggestPagedResponse.
  • Constructor Details

    • SuggestPagedIterable

      public SuggestPagedIterable(SuggestPagedFlux pagedFluxBase)
      Creates instance given SuggestPagedIterable.
      Parameters:
      pagedFluxBase - The SuggestPagedIterable that will be consumed as an iterable.
    • SuggestPagedIterable

      public SuggestPagedIterable(Supplier<SuggestPagedResponse> firstPageRetriever)
      Creates an instance of SuggestPagedIterable. The constructor takes a Supplier. The Supplier returns the first page of SuggestPagedResponse.
      Parameters:
      firstPageRetriever - Supplier that retrieves the first page
    • SuggestPagedIterable

      public SuggestPagedIterable(Supplier<SuggestPagedResponse> firstPageRetriever, Function<String,SuggestPagedResponse> nextPageRetriever)
      Creates an instance of SuggestPagedIterable. The constructor takes a Supplier and Function. The Supplier returns the first page of SuggestPagedResponse, the Function retrieves subsequent pages of SuggestPagedResponse.
      Parameters:
      firstPageRetriever - Supplier that retrieves the first page
      nextPageRetriever - Function that retrieves the next page given a continuation token