public static final class Cursor.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
Cursor |
build()
Construct the final message.
|
Cursor |
build(java.lang.String webSafeString)
Construct the final message.
|
Cursor.Builder |
setPerResult(boolean perResult)
Sets whether or not to return a Cursor on each individual result
in
Results or a single cursor with all
Results. |
public Cursor.Builder setPerResult(boolean perResult)
Results or a single cursor with all
Results.perResult - if True, then return a Cursor with each
ScoredDocument result, otherwise return a single Cursor
with Resultspublic Cursor build(java.lang.String webSafeString)
webSafeString - use a cursor returned from a
previous set of search results as a starting point to retrieve
the next set of results. This can get you better performance, and
also improves the consistency of pagination through index updatesjava.lang.IllegalArgumentException - if the cursor string is invalidpublic Cursor build()