T
- The type of elements in a ContinuablePage
public final class CosmosPagedIterable<T> extends com.azure.core.util.paging.ContinuablePagedIterable<String,T,FeedResponse<T>>
ContinuablePagedIterable
.
This type is a IterableStream
that provides the ability to operate on pages of type
FeedResponse
and individual items in such pages. This type supports String
type continuation tokens,
allowing for restarting from a previously-retrieved continuation token.
For more information on the base type, refer ContinuablePagedIterable
ContinuablePage
,
FeedResponse
Constructor and Description |
---|
CosmosPagedIterable(CosmosPagedFlux<T> cosmosPagedFlux)
Creates instance given
CosmosPagedFlux . |
CosmosPagedIterable(CosmosPagedFlux<T> cosmosPagedFlux,
int batchSize)
Creates instance given
CosmosPagedFlux . |
Modifier and Type | Method and Description |
---|---|
CosmosPagedIterable<T> |
handle(Consumer<FeedResponse<T>> feedResponseConsumer)
Handle for invoking "side-effects" on each FeedResponse returned by CosmosPagedIterable
|
iterableByPage, iterableByPage, iterableByPage, iterableByPage, iterator, stream, streamByPage, streamByPage, streamByPage, streamByPage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public CosmosPagedIterable(CosmosPagedFlux<T> cosmosPagedFlux)
CosmosPagedFlux
.cosmosPagedFlux
- the paged flux use as iterablepublic CosmosPagedIterable(CosmosPagedFlux<T> cosmosPagedFlux, int batchSize)
CosmosPagedFlux
.cosmosPagedFlux
- the paged flux use as iterablebatchSize
- the preferred batchSize to be used when pulling data from the servicepublic CosmosPagedIterable<T> handle(Consumer<FeedResponse<T>> feedResponseConsumer)
feedResponseConsumer
- handlerCopyright © 2021 Microsoft Corporation. All rights reserved.