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 |
cursor(Expr cursor)
Sets the cursor object of the pagination.
|
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 cursor(Expr cursor)
cursor
- the cursor objectPagination
instancepublic 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