Slice
classin packageklyn.data
public final class Slice<T>:
Slice

Materialized page window that avoids an exact total-count operation.

Example
slice = query.slice(PageRequest(0, 20))
if slice.hasNext:
print("more rows are available")
Properties
Modifier and Type Member Description
public readonly property hasNext
hasNext as Boolean
True when a following slice exists.
public readonly property hasPrevious
hasPrevious as Boolean
True when a preceding slice exists.
public readonly property items
items as IList<T>
Rows in this slice.
public readonly property pageIndex
pageIndex as Int
Zero-based page index.
public readonly property pageSize
pageSize as Int
Requested maximum page size.
Constructors
Modifier and Type Member Description
public Slice
Slice(items as IList<T>, request as PageRequest, hasNext as Boolean):
Creates an immutable slice result.