Modifier and Type | Method and Description |
---|---|
FindOptions |
FindOptions.setBatchSize(int batchSize)
Set the batch size for methods loading found data in batches.
|
FindOptions |
FindOptions.setFields(io.vertx.core.json.JsonObject fields)
Set the fields
|
FindOptions |
FindOptions.setHint(String hint)
Set the hint
|
FindOptions |
FindOptions.setLimit(int limit)
Set the limit
|
FindOptions |
FindOptions.setSkip(int skip)
Set the skip
|
FindOptions |
FindOptions.setSort(io.vertx.core.json.JsonObject sort)
Set the sort document
|
Modifier and Type | Method and Description |
---|---|
io.vertx.core.streams.ReadStream<io.vertx.core.json.JsonObject> |
MongoClient.findBatchWithOptions(String collection,
io.vertx.core.json.JsonObject query,
FindOptions options)
Find matching documents in the specified collection, specifying options.
|
io.vertx.core.Future<io.vertx.core.json.JsonObject> |
MongoClient.findOneAndDeleteWithOptions(String collection,
io.vertx.core.json.JsonObject query,
FindOptions findOptions)
Like
MongoClient.findOneAndDeleteWithOptions(String, JsonObject, FindOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.findOneAndDeleteWithOptions(String collection,
io.vertx.core.json.JsonObject query,
FindOptions findOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and delete it.
|
io.vertx.core.Future<io.vertx.core.json.JsonObject> |
MongoClient.findOneAndReplaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
FindOptions findOptions,
UpdateOptions updateOptions)
Like
MongoClient.findOneAndReplaceWithOptions(String, JsonObject, JsonObject, FindOptions, UpdateOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.findOneAndReplaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
FindOptions findOptions,
UpdateOptions updateOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and replace it.
|
io.vertx.core.Future<io.vertx.core.json.JsonObject> |
MongoClient.findOneAndUpdateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions)
Like
MongoClient.findOneAndUpdateWithOptions(String, JsonObject, JsonObject, FindOptions, UpdateOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.findOneAndUpdateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection and update it.
|
io.vertx.core.Future<List<io.vertx.core.json.JsonObject>> |
MongoClient.findWithOptions(String collection,
io.vertx.core.json.JsonObject query,
FindOptions options)
Like
MongoClient.findWithOptions(String, JsonObject, FindOptions, Handler) but returns a Future of the asynchronous result |
MongoClient |
MongoClient.findWithOptions(String collection,
io.vertx.core.json.JsonObject query,
FindOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.core.json.JsonObject>>> resultHandler)
Find matching documents in the specified collection, specifying options
|
static void |
FindOptionsConverter.fromJson(Iterable<Map.Entry<String,Object>> json,
FindOptions obj) |
static void |
FindOptionsConverter.toJson(FindOptions obj,
io.vertx.core.json.JsonObject json) |
static void |
FindOptionsConverter.toJson(FindOptions obj,
Map<String,Object> json) |
Constructor and Description |
---|
FindOptions(FindOptions options)
Copy constructor
|
Copyright © 2021 Eclipse. All rights reserved.