← Back to Stormify Documentation

Page

data class Page<T>(val rows: List<T>, val total: Long, val page: Int, val pageSize: Int)

Result of a PagedQuery.execute call. Contains the rows for the requested page, the total matching row count, and pagination metadata — everything a typical REST response needs without a second round-trip.

Constructors

Link copied to clipboard
constructor(rows: List<T>, total: Long, page: Int, pageSize: Int)

Properties

Link copied to clipboard
val page: Int

The zero-based page index that was requested and returned.

Link copied to clipboard

The page size that was requested and used.

Link copied to clipboard
val rows: List<T>

The rows for the requested page, in sort order.

Link copied to clipboard
val total: Long

Total matching rows under the current spec, ignoring pagination.

Link copied to clipboard

Total number of pages — ceil(total / pageSize). Zero if total is zero.