Package com.azure.search.documents.util
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 Summary
ConstructorDescriptionSuggestPagedIterable
(SuggestPagedFlux pagedFluxBase) Creates instance givenSuggestPagedIterable
.SuggestPagedIterable
(Supplier<SuggestPagedResponse> firstPageRetriever) Creates an instance ofSuggestPagedIterable
.SuggestPagedIterable
(Supplier<SuggestPagedResponse> firstPageRetriever, Function<String, SuggestPagedResponse> nextPageRetriever) Creates an instance ofSuggestPagedIterable
. -
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
-
SuggestPagedIterable
Creates instance givenSuggestPagedIterable
.- Parameters:
pagedFluxBase
- TheSuggestPagedIterable
that will be consumed as an iterable.
-
SuggestPagedIterable
Creates an instance ofSuggestPagedIterable
. The constructor takes aSupplier
. TheSupplier
returns the first page ofSuggestPagedResponse
.- Parameters:
firstPageRetriever
- Supplier that retrieves the first page
-
SuggestPagedIterable
public SuggestPagedIterable(Supplier<SuggestPagedResponse> firstPageRetriever, Function<String, SuggestPagedResponse> nextPageRetriever) Creates an instance ofSuggestPagedIterable
. The constructor takes aSupplier
andFunction
. TheSupplier
returns the first page ofSuggestPagedResponse
, theFunction
retrieves subsequent pages ofSuggestPagedResponse
.- Parameters:
firstPageRetriever
- Supplier that retrieves the first pagenextPageRetriever
- Function that retrieves the next page given a continuation token
-