C
- the type of the continuation tokenT
- The type of elements in a ContinuablePage
P
- The ContinuablePage
holding items of type T
.public abstract class ContinuablePagedIterable<C,T,P extends com.azure.core.util.paging.ContinuablePage<C,T>>
extends com.azure.core.util.IterableStream<T>
IterableStream
,
ContinuablePagedFlux
Constructor and Description |
---|
ContinuablePagedIterable(com.azure.core.util.paging.ContinuablePagedFlux<C,T,P> pagedFlux)
Creates instance given
ContinuablePagedFlux . |
ContinuablePagedIterable(com.azure.core.util.paging.ContinuablePagedFlux<C,T,P> pagedFlux,
int batchSize)
Creates instance given
ContinuablePagedFlux . |
Modifier and Type | Method and Description |
---|---|
Iterable<P> |
iterableByPage()
Retrieve the
Iterable , one page at a time. |
Iterable<P> |
iterableByPage(C continuationToken)
Retrieve the
Iterable , one page at a time, starting from the next page associated with the given
continuation token. |
Iterable<P> |
iterableByPage(C continuationToken,
int preferredPageSize)
Retrieve the
Iterable , one page at a time, with each page containing preferredPageSize
items, starting from the next page associated with the given continuation token. |
Iterable<P> |
iterableByPage(int preferredPageSize)
Retrieve the
Iterable , one page at a time, with each page containing preferredPageSize
items. |
Stream<P> |
streamByPage()
Retrieve the
Stream , one page at a time. |
Stream<P> |
streamByPage(C continuationToken)
Retrieve the
Stream , one page at a time, starting from the next page associated with the given
continuation token. |
Stream<P> |
streamByPage(C continuationToken,
int preferredPageSize)
Retrieve the
Stream , one page at a time, with each page containing preferredPageSize
items, starting from the next page associated with the given continuation token. |
Stream<P> |
streamByPage(int preferredPageSize)
Retrieve the
Stream , one page at a time, with each page containing preferredPageSize
items. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ContinuablePagedIterable(com.azure.core.util.paging.ContinuablePagedFlux<C,T,P> pagedFlux)
ContinuablePagedFlux
.pagedFlux
- the paged flux use as iterablepublic Stream<P> streamByPage()
Stream
, one page at a time.
It will provide same Stream
of T values from starting if called multiple times.Stream
of a pagespublic Stream<P> streamByPage(C continuationToken)
Stream
, one page at a time, starting from the next page associated with the given
continuation token. To start from first page, use streamByPage()
instead.continuationToken
- The continuation token used to fetch the next pageStream
of a pagespublic Stream<P> streamByPage(int preferredPageSize)
Stream
, one page at a time, with each page containing preferredPageSize
items.
It will provide same Stream
of T values from starting if called multiple times.preferredPageSize
- the preferred page size, service may or may not honor the page
size preference hence client MUST be prepared to handle pages
with different page size.Stream
of a pagespublic Stream<P> streamByPage(C continuationToken, int preferredPageSize)
Stream
, one page at a time, with each page containing preferredPageSize
items, starting from the next page associated with the given continuation token.
To start from first page, use streamByPage()
or streamByPage(int)
instead.preferredPageSize
- the preferred page size, service may or may not honor the page
size preference hence client MUST be prepared to handle pages
with different page size.continuationToken
- The continuation token used to fetch the next pageStream
of a pagespublic Iterable<P> iterableByPage()
Iterable
, one page at a time.
It will provide same Iterable
of T values from starting if called multiple times.Stream
of a pagespublic Iterable<P> iterableByPage(C continuationToken)
Iterable
, one page at a time, starting from the next page associated with the given
continuation token. To start from first page, use iterableByPage()
instead.continuationToken
- The continuation token used to fetch the next pageIterable
of a pagespublic Iterable<P> iterableByPage(int preferredPageSize)
Iterable
, one page at a time, with each page containing preferredPageSize
items.
It will provide same Iterable
of T values from starting if called multiple times.preferredPageSize
- the preferred page size, service may or may not honor the page
size preference hence client MUST be prepared to handle pages
with different page size.Iterable
of a pagespublic Iterable<P> iterableByPage(C continuationToken, int preferredPageSize)
Iterable
, one page at a time, with each page containing preferredPageSize
items, starting from the next page associated with the given continuation token.
To start from first page, use iterableByPage()
or iterableByPage(int)
instead.preferredPageSize
- the preferred page size, service may or may not honor the page
size preference hence client MUST be prepared to handle pages
with different page size.continuationToken
- The continuation token used to fetch the next pageIterable
of a pagesCopyright © 2020 Microsoft Corporation. All rights reserved.