PageWindow

sealed interface PageWindow

Which records QueryBackend.page returns.

Inheritors

Types

Link copied to clipboard
class Keyset @InternalWowApi constructor(val after: CursorPosition?, val limit: Int) : PageWindow

At most limit records strictly after after in sort order, from the first when after is null.

Link copied to clipboard
class Offset @InternalWowApi constructor(val offset: Long, val limit: Int, val withTotal: Boolean, val totalLimit: Int? = null) : PageWindow

Records offset until offset + limit in sort order; withTotal also asks for the number of matches. A totalLimit bounds that number: the backend may stop counting after totalLimit + 1 matches, as QueryBackend.count does; null asks for the exact number.