public class FindOptions extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_LIMIT
The default value of limit = -1, signifying no limit
|
static int |
DEFAULT_SKIP
The default value of skip = 0
|
Constructor and Description |
---|
FindOptions()
Default constructor
|
FindOptions(FindOptions options)
Copy constructor
|
FindOptions(io.vertx.core.json.JsonObject options)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
io.vertx.core.json.JsonObject |
getFields()
Get the fields
|
int |
getLimit()
Get the limit - this determines the max number of rows to return
|
int |
getSkip()
Get the skip.
|
io.vertx.core.json.JsonObject |
getSort()
Get the sort document
|
int |
hashCode() |
FindOptions |
setFields(io.vertx.core.json.JsonObject fields)
Set the fields
|
FindOptions |
setLimit(int limit)
Set the limit
|
FindOptions |
setSkip(int skip)
Set the skip
|
FindOptions |
setSort(io.vertx.core.json.JsonObject sort)
Set the sort document
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
public static final int DEFAULT_LIMIT
public static final int DEFAULT_SKIP
public FindOptions()
public FindOptions(FindOptions options)
options
- the one to copypublic FindOptions(io.vertx.core.json.JsonObject options)
options
- the JSONpublic io.vertx.core.json.JsonObject toJson()
public io.vertx.core.json.JsonObject getFields()
public FindOptions setFields(io.vertx.core.json.JsonObject fields)
fields
- the fieldspublic io.vertx.core.json.JsonObject getSort()
public FindOptions setSort(io.vertx.core.json.JsonObject sort)
sort
- the sort documentpublic int getLimit()
public FindOptions setLimit(int limit)
limit
- the limitpublic int getSkip()
public FindOptions setSkip(int skip)
skip
- the skipCopyright © 2017. All rights reserved.