public class CosmosPageRequest
extends org.springframework.data.domain.PageRequest
FeedResponse.getContinuationToken() response continuation token} is saved
to help query next page.
The requestContinuation token should be saved after each request and reused in later queries.
| Constructor and Description |
|---|
CosmosPageRequest(int page,
int size,
String requestContinuation)
Creates a new
PageRequest with unsorted parameters applied. |
CosmosPageRequest(int page,
int size,
String requestContinuation,
org.springframework.data.domain.Sort sort)
Creates a new
CosmosPageRequest with sort parameters applied. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getOffset() |
String |
getRequestContinuation()
To get request continuation
|
int |
hashCode() |
org.springframework.data.domain.PageRequest |
next() |
static CosmosPageRequest |
of(int page,
int size,
String requestContinuation,
org.springframework.data.domain.Sort sort)
Creates a new
CosmosPageRequest |
static CosmosPageRequest |
of(long offset,
int page,
int size,
String requestContinuation,
org.springframework.data.domain.Sort sort)
Creates a new
CosmosPageRequest |
first, getSort, of, of, of, ofSize, previous, toString, withPage, withSort, withSortgetPageNumber, getPageSize, hasPrevious, previousOrFirstpublic CosmosPageRequest(int page,
int size,
String requestContinuation)
PageRequest with unsorted parameters applied.page - zero-based page index, must not be negative.size - the size of the page to be returned, must be greater than 0.requestContinuation - must not be null.public CosmosPageRequest(int page,
int size,
String requestContinuation,
org.springframework.data.domain.Sort sort)
CosmosPageRequest with sort parameters applied.page - zero-based page index, must not be negative.size - the size of the page to be returned, must be greater than 0.sort - must not be null, use Sort.unsorted() instead.requestContinuation - must not be null.public static CosmosPageRequest of(int page, int size, String requestContinuation, org.springframework.data.domain.Sort sort)
CosmosPageRequestpage - zero-based page index, must not be negative.size - the size of the page to be returned, must be greater than 0.requestContinuation - cannot be nullsort - cannot be nullpublic static CosmosPageRequest of(long offset, int page, int size, String requestContinuation, org.springframework.data.domain.Sort sort)
CosmosPageRequestoffset - cannot be nullpage - zero-based page index, must not be negative.size - the size of the page to be returned, must be greater than 0.requestContinuation - cannot be nullsort - cannot be nullpublic org.springframework.data.domain.PageRequest next()
next in interface org.springframework.data.domain.Pageablenext in class org.springframework.data.domain.PageRequestpublic long getOffset()
getOffset in interface org.springframework.data.domain.PageablegetOffset in class org.springframework.data.domain.AbstractPageRequestpublic String getRequestContinuation()
public int hashCode()
hashCode in class org.springframework.data.domain.PageRequestpublic boolean equals(Object obj)
equals in class org.springframework.data.domain.PageRequestVisit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.