getCursor
@Nonnull
public Optional<C> getCursor()
Used for cursor based pagination. Cursor based pagination can be used by services to return results with better
performance vs offset based pagination as offset may need all results to be scanned in order to skip records.
When using cursor based pagination, each page of results are ordered by a unique
combination of field(s) which forms a cursor. Clients can request for a page that contains results starting from
and excluding given cursor.
- Returns:
- cursor if specified in this page request, otherwise
Optional.empty()
- See Also:
Page.getNextPageRequest()