CursorQuery

class CursorQuery @InternalWowApi constructor(val filter: FilterExpression = MatchAllFilter, val projection: Projection = Projection.ALL, sort: List<Sort> = emptyList(), val size: Int? = null, val cursor: String? = null) : Queryable<CursorQuery>

A query for the page of results after a cursor, in the order of sort, with filtering and projection (Queryable).

Parameters

sort

The order of the results; the query keeps a copy.

Constructors

Link copied to clipboard
constructor(filter: FilterExpression = MatchAllFilter, projection: Projection = Projection.ALL, sort: List<Sort> = emptyList(), size: Int? = null, cursor: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Where the page starts: the previous page's next cursor, or null for the first page.

Link copied to clipboard
open override val filter: FilterExpression

The filter expression the results match; MatchAllFilter, every record, by default.

Link copied to clipboard
open override val projection: Projection

The fields the results include or exclude.

Link copied to clipboard
val size: Int?

The most items on the page, at least 1; null, the default, takes the server's cursor page size.

Link copied to clipboard
open override val sort: List<Sort>

The order of the results, which the cursor follows; a copy, so a list its caller changes later changes neither this query nor its hash.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withFilter(newFilter: FilterExpression): CursorQuery
Link copied to clipboard
open override fun withProjection(newProjection: Projection): CursorQuery

Creates a new query with the specified projection.