Class PageBuilder
- Namespace
- Trellis
- Assembly
- Trellis.Core.dll
Storage-neutral assembly of forward pages from an ordered, sought, over-fetched batch.
public static class PageBuilder
- Inheritance
-
PageBuilder
- Inherited Members
Methods
FromOverFetch<T>(IReadOnlyList<T>, PageSize, Func<T, Cursor>)
Keeps at most the applied limit and obtains the next cursor from the last retained row, exactly once and only when more rows exist. The caller owns filtering, seeking and ordering. Use the Page<T> constructor instead for provider-supplied continuation tokens.
public static Page<T> FromOverFetch<T>(IReadOnlyList<T> overFetched, PageSize pageSize, Func<T, Cursor> cursorSelector)
Parameters
overFetchedIReadOnlyList<T>pageSizePageSizecursorSelectorFunc<T, Cursor>
Returns
- Page<T>
Type Parameters
T