Package io.vertx.tp.plugin.mongo
Class MongoReadOpts
- java.lang.Object
-
- io.vertx.tp.plugin.mongo.MongoReadOpts
-
public class MongoReadOpts extends Object
Build FindOptions for mongo database.
-
-
Constructor Summary
Constructors Constructor Description MongoReadOpts()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static io.vertx.ext.mongo.FindOptionstoAsc(String sortField)JqTool all records by field Ascstatic io.vertx.ext.mongo.FindOptionstoAscLimit(String sortField, int limit)JqTool top n records by field ASCstatic io.vertx.ext.mongo.FindOptionstoDesc(String sortField)JqTool all records by field Descstatic io.vertx.ext.mongo.FindOptionstoDescLimit(String sortField, int limit)JqTool top n records by field DESCstatic io.vertx.ext.mongo.FindOptionstoFull(io.vertx.up.atom.query.Pager pager, io.vertx.up.atom.query.Sorter sorter)JqTool all records by pager/sorter both
-
-
-
Method Detail
-
toDescLimit
public static io.vertx.ext.mongo.FindOptions toDescLimit(String sortField, int limit)
JqTool top n records by field DESC- Parameters:
sortField-limit-- Returns:
-
toAscLimit
public static io.vertx.ext.mongo.FindOptions toAscLimit(String sortField, int limit)
JqTool top n records by field ASC- Parameters:
sortField-limit-- Returns:
-
toDesc
public static io.vertx.ext.mongo.FindOptions toDesc(String sortField)
JqTool all records by field Desc- Parameters:
sortField-- Returns:
-
toAsc
public static io.vertx.ext.mongo.FindOptions toAsc(String sortField)
JqTool all records by field Asc- Parameters:
sortField-- Returns:
-
toFull
public static io.vertx.ext.mongo.FindOptions toFull(io.vertx.up.atom.query.Pager pager, io.vertx.up.atom.query.Sorter sorter)JqTool all records by pager/sorter both- Parameters:
pager-sorter-- Returns:
-
-