PagedQuery

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

Data class representing a paginated query with filtering, projection, sorting, and pagination.

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

Constructors

Link copied to clipboard
constructor(filter: FilterExpression, 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.

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.

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.