Package com.azure.search.documents.util
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 Summary
ConstructorDescriptionAutocompletePagedIterable
(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, streamByPage
Methods inherited from class com.azure.core.util.IterableStream
of
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AutocompletePagedIterable
Creates instance givenAutocompletePagedIterable
.- Parameters:
pagedFluxBase
- TheAutocompletePagedFlux
that will be consumed as an iterable.
-
AutocompletePagedIterable
Creates an instance ofAutocompletePagedIterable
. The constructor takes aSupplier
andFunction
. TheSupplier
returns 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 aSupplier
andFunction
. TheSupplier
returns the first page ofAutocompletePagedResponse
, theFunction
retrieves subsequent pages ofAutocompletePagedResponse
.- Parameters:
firstPageRetriever
- Supplier that retrieves the first pagenextPageRetriever
- Function that retrieves the next page given a continuation token
-