Package com.azure.search.documents.util
Class SuggestPagedIterable
java.lang.Object
com.azure.core.util.IterableStream<SuggestResult>
com.azure.core.util.paging.ContinuablePagedIterable<String,SuggestResult,SuggestPagedResponse>
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
ConstructorsConstructorDescriptionSuggestPagedIterable(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, 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
-
SuggestPagedIterable
Creates instance givenSuggestPagedIterable.- Parameters:
pagedFluxBase- TheSuggestPagedIterablethat will be consumed as an iterable.
-
SuggestPagedIterable
Creates an instance ofSuggestPagedIterable. The constructor takes aSupplier. TheSupplierreturns 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 aSupplierandFunction. TheSupplierreturns the first page ofSuggestPagedResponse, theFunctionretrieves subsequent pages ofSuggestPagedResponse.- Parameters:
firstPageRetriever- Supplier that retrieves the first pagenextPageRetriever- Function that retrieves the next page given a continuation token
-