Package com.azure.search.documents.util
Class AutocompletePagedIterable
java.lang.Object
com.azure.core.util.IterableStream<AutocompleteItem>
com.azure.core.util.paging.ContinuablePagedIterable<String,AutocompleteItem,AutocompletePagedResponse>
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 Summary
ConstructorsConstructorDescriptionAutocompletePagedIterable(AutocompletePagedFlux pagedFluxBase) Creates instance givenAutocompletePagedIterable.AutocompletePagedIterable(Supplier<AutocompletePagedResponse> firstPageRetriever) Creates an instance ofAutocompletePagedIterable.AutocompletePagedIterable(Supplier<AutocompletePagedResponse> firstPageRetriever, Function<String, AutocompletePagedResponse> nextPageRetriever) Creates an instance ofAutocompletePagedIterable. -
Method Summary
Methods inherited from class com.azure.core.util.paging.ContinuablePagedIterable
iterableByPage, iterableByPage, iterableByPage, iterableByPage, iterator, stream, streamByPage, streamByPage, streamByPage, streamByPageMethods inherited from class com.azure.core.util.IterableStream
ofMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AutocompletePagedIterable
Creates instance givenAutocompletePagedIterable.- Parameters:
pagedFluxBase- TheAutocompletePagedFluxthat will be consumed as an iterable.
-
AutocompletePagedIterable
Creates an instance ofAutocompletePagedIterable. The constructor takes aSupplierandFunction. TheSupplierreturns the first page ofAutocompletePagedResponse.- Parameters:
firstPageRetriever- Supplier that retrieves the first page
-
AutocompletePagedIterable
public AutocompletePagedIterable(Supplier<AutocompletePagedResponse> firstPageRetriever, Function<String, AutocompletePagedResponse> nextPageRetriever) Creates an instance ofAutocompletePagedIterable. The constructor takes aSupplierandFunction. TheSupplierreturns the first page ofAutocompletePagedResponse, theFunctionretrieves subsequent pages ofAutocompletePagedResponse.- Parameters:
firstPageRetriever- Supplier that retrieves the first pagenextPageRetriever- Function that retrieves the next page given a continuation token
-