Warning:
Fauna is decommissioning FQL v4 on June 30, 2025.
This driver is not compatible with FQL v10, the latest version. Fauna accounts created after August 21, 2024 must use FQL v10.
Ensure you migrate existing projects to the official v10 driver by the v4 EOL date: https://github.com/fauna/fauna-jvm.
For more information, see the v4 end of life (EOL) announcement and related FAQ.
public final class Pagination extends Expr
See Language.Paginate(Expr) for details.
Language.Paginate(Expr)| Modifier and Type | Method and Description |
|---|---|
Pagination |
after(Expr cursor)
Sets the cursor of the pagination to move forward.
|
Pagination |
before(Expr cursor)
Sets the cursor of the pagination to move backwards.
|
Pagination |
events(boolean events)
Define if the pagination should return events or not.
|
Pagination |
events(Expr events)
Define if the pagination should return events or not.
|
Pagination |
size(Expr size)
Sets the maximum number of elements per page to return.
|
Pagination |
size(java.lang.Integer size)
Sets the maximum number of elements per page to return.
|
Pagination |
sources(boolean sources)
Define if the pagination should return source information or not.
|
Pagination |
sources(Expr sources)
Define if the pagination should return source information or not.
|
protected java.util.Map<java.lang.String,Expr> |
toJson() |
Pagination |
ts(Expr ts)
Sets the timestamp for the pagination.
|
Pagination |
ts(java.lang.Long ts)
Sets the timestamp for the pagination.
|
public Pagination before(Expr cursor)
cursor - the before cursorPagination instancepublic Pagination after(Expr cursor)
cursor - the after cursorPagination instancepublic Pagination ts(Expr ts)
ts - the desired timestamp. Type: timestampPagination instanceLanguage.Time(Expr),
Language.Value(Instant)public Pagination ts(java.lang.Long ts)
ts - the desired timestamp in UNIX microsecondsPagination instancepublic Pagination size(Expr size)
size - the desired page size. Type: NumberPagination instancepublic Pagination size(java.lang.Integer size)
size - the desired page sizePagination instancepublic Pagination sources(Expr sources)
sources - a boolean valuePagination instancepublic Pagination sources(boolean sources)
sources - a boolean valuePagination instancepublic Pagination events(Expr events)
events - a boolean valuePagination instancepublic Pagination events(boolean events)
events - a boolean valuePagination instance