Package io.vertx.tp.plugin.mongo
Class MongoReadOpts
java.lang.Object
io.vertx.tp.plugin.mongo.MongoReadOpts
Build FindOptions for mongo database.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic io.vertx.ext.mongo.FindOptionsJqTool 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.FindOptionsJqTool 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
-
Constructor Details
-
MongoReadOpts
public MongoReadOpts()
-
-
Method Details
-
toDescLimit
JqTool top n records by field DESC- Parameters:
sortField-limit-- Returns:
-
toAscLimit
JqTool top n records by field ASC- Parameters:
sortField-limit-- Returns:
-
toDesc
JqTool all records by field Desc- Parameters:
sortField-- Returns:
-
toAsc
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:
-