public class PreparedQueryExecuteOptions extends Object
Constructor and Description |
---|
PreparedQueryExecuteOptions()
Default constructor
|
PreparedQueryExecuteOptions(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
int |
getLimit()
Get the size of the list to the given number of nodes.
|
String |
getNear()
Get node name for sorting the list in ascending order based on the estimated round trip time from that node.
|
PreparedQueryExecuteOptions |
setLimit(int limit)
Set the size of the list to the given number of nodes.
|
PreparedQueryExecuteOptions |
setNear(String near)
Set node name for sorting the list in ascending order based on the estimated round trip time from that node.
|
JsonObject |
toJson()
Convert to JSON
|
public PreparedQueryExecuteOptions()
public PreparedQueryExecuteOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public String getNear()
public PreparedQueryExecuteOptions setNear(String near)
_agent
will use the agent's node for the sort. If this is not present,
the default behavior will shuffle the nodes randomly each time the query is executed.near
- the node namepublic int getLimit()
public PreparedQueryExecuteOptions setLimit(int limit)
limit
- the size of the list to the given number of nodesCopyright © 2022 Eclipse. All rights reserved.