Class AutocompletePagedIterable

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

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

    • AutocompletePagedIterable

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

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

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