public final class Slice<T>:
Materialized page window that avoids an exact total-count operation.
slice = query.slice(PageRequest(0, 20))
if slice.hasNext:
print("more rows are available")| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | hasNexthasNext as Boolean |
True when a following slice exists. |
| public readonly property | hasPrevioushasPrevious as Boolean |
True when a preceding slice exists. |
| public readonly property | itemsitems as IList<T> |
Rows in this slice. |
| public readonly property | pageIndexpageIndex as Int |
Zero-based page index. |
| public readonly property | pageSizepageSize as Int |
Requested maximum page size. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | SliceSlice(items as IList<T>, request as PageRequest, hasNext as Boolean): |
Creates an immutable slice result. |