public final class PagedConverter extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> com.azure.core.http.rest.PagedFlux<T> |
convertListToPagedFlux(Mono<com.azure.core.http.rest.Response<List<T>>> responseMono)
Converts Response of List to PagedFlux.
|
static <T,S> com.azure.core.http.rest.PagedFlux<S> |
flatMapPage(com.azure.core.http.rest.PagedFlux<T> pagedFlux,
Function<? super T,? extends org.reactivestreams.Publisher<? extends S>> mapper)
Applies flatMap transform to elements of PagedFlux.
|
static <T,S> com.azure.core.http.rest.PagedFlux<S> |
mapPage(com.azure.core.http.rest.PagedFlux<T> pagedFlux,
Function<T,S> mapper)
Applies map transform to elements of PagedFlux.
|
static <T,S> com.azure.core.http.rest.PagedIterable<S> |
mapPage(com.azure.core.http.rest.PagedIterable<T> pageIterable,
Function<T,S> mapper)
Applies map transform to elements of PagedIterable.
|
static <T,S> com.azure.core.http.rest.PagedFlux<S> |
mergePagedFlux(com.azure.core.http.rest.PagedFlux<T> pagedFlux,
Function<? super T,com.azure.core.http.rest.PagedFlux<S>> transformer)
Merge collection of all PagedFlux transformed from elements of PagedFlux to a single PagedFlux.
|
public static <T,S> com.azure.core.http.rest.PagedIterable<S> mapPage(com.azure.core.http.rest.PagedIterable<T> pageIterable,
Function<T,S> mapper)
T - input type of PagedFlux.S - return type of PagedFlux.pageIterable - the input of PagedIterable.mapper - the map transform of element T to element S.public static <T,S> com.azure.core.http.rest.PagedFlux<S> mapPage(com.azure.core.http.rest.PagedFlux<T> pagedFlux,
Function<T,S> mapper)
T - input type of PagedFlux.S - return type of PagedFlux.pagedFlux - the input of PagedFlux.mapper - the map transform of element T to element S.public static <T,S> com.azure.core.http.rest.PagedFlux<S> flatMapPage(com.azure.core.http.rest.PagedFlux<T> pagedFlux,
Function<? super T,? extends org.reactivestreams.Publisher<? extends S>> mapper)
T - input type of PagedFlux.S - return type of PagedFlux.pagedFlux - the input of PagedFlux.mapper - the flatMap transform of element T to Publisher of S.public static <T,S> com.azure.core.http.rest.PagedFlux<S> mergePagedFlux(com.azure.core.http.rest.PagedFlux<T> pagedFlux,
Function<? super T,com.azure.core.http.rest.PagedFlux<S>> transformer)
T - input type of PagedFlux.S - return type of PagedFlux.pagedFlux - the input of PagedFlux.transformer - the transform of element T to PagedFlux of S.public static <T> com.azure.core.http.rest.PagedFlux<T> convertListToPagedFlux(Mono<com.azure.core.http.rest.Response<List<T>>> responseMono)
T - type of element.responseMono - the Response of List to convert.Copyright © 2021 Microsoft Corporation. All rights reserved.