public final class Page<T>:
Materialized page with an exact total count.
page = query.page(PageRequest(0, 20)) print(page.totalPages)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | itemsitems as IList<T> |
Rows in this page. |
| public readonly property | pageIndexpageIndex as Int |
Zero-based page index. |
| public readonly property | pageSizepageSize as Int |
Requested maximum page size. |
| public readonly property | totalItemstotalItems as Long |
Exact number of rows in the complete query result. |
| public readonly property | totalPagestotalPages as Long |
Exact number of pages. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | PagePage(items as IList<T>, request as PageRequest, totalItems as Long): |
Creates an immutable page result. |