PagedQuery

class PagedQuery @InternalWowApi constructor(val filter: FilterExpression = MatchAllFilter, val projection: Projection = Projection.ALL, sort: List<Sort> = emptyList(), val pagination: Pagination = Pagination.DEFAULT, val total: TotalMode = TotalMode.BOUNDED) : Queryable<PagedQuery>

A paged query: one page of the records its filter matches, in its order, with its projection.

It supports all standard query operations (Queryable) and retrieves one page of the results.

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(), pagination: Pagination = Pagination.DEFAULT, total: TotalMode = TotalMode.BOUNDED)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val filter: FilterExpression

The filter expression to apply to the query; MatchAllFilter, every record, by default.

Link copied to clipboard

The pagination settings to control which page and how many items to return.

Link copied to clipboard
open override val projection: Projection

The field projection to control which fields are included in the results.

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

The sorting criteria to order the results; a copy, so a list its caller changes later changes neither this query nor its hash.

Link copied to clipboard

How the total is counted; TotalMode.BOUNDED, the default, stops at the budget's count limit.

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): PagedQuery

Creates a new PagedQuery with the specified filter.

Link copied to clipboard
open override fun withProjection(newProjection: Projection): PagedQuery

Creates a new PagedQuery with the specified projection.