Modifier and Type | Method and Description |
---|---|
MongoClient |
MongoClient.bulkWrite(String collection,
List<BulkOperation> operations,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientBulkWriteResult>> resultHandler)
Execute a bulk operation.
|
MongoClient |
MongoClient.bulkWriteWithOptions(String collection,
List<BulkOperation> operations,
BulkWriteOptions bulkWriteOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientBulkWriteResult>> resultHandler)
Execute a bulk operation with the specified write options.
|
MongoClient |
MongoClient.count(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Long>> resultHandler)
Count matching documents in a collection.
|
MongoClient |
MongoClient.createCollection(String collectionName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Create a new collection
|
MongoClient |
MongoClient.createIndex(String collection,
io.vertx.core.json.JsonObject key,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Creates an index.
|
MongoClient |
MongoClient.createIndexWithOptions(String collection,
io.vertx.core.json.JsonObject key,
IndexOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Creates an index.
|
static MongoClient |
MongoClient.createNonShared(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config)
Create a Mongo client which maintains its own data source.
|
static MongoClient |
MongoClient.createShared(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config)
Like
createShared(io.vertx.core.Vertx, JsonObject, String) but with the default data source name |
static MongoClient |
MongoClient.createShared(io.vertx.core.Vertx vertx,
io.vertx.core.json.JsonObject config,
String dataSourceName)
Create a Mongo client which shares its data source with any other Mongo clients created with the same
data source name
|
MongoClient |
MongoClient.distinct(String collection,
String fieldName,
String resultClassname,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>> resultHandler)
Gets the distinct values of the specified field name.
|
MongoClient |
MongoClient.distinctWithQuery(String collection,
String fieldName,
String resultClassname,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>> resultHandler)
Gets the distinct values of the specified field name filtered by specified query.
|
MongoClient |
MongoClient.dropCollection(String collection,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Drop a collection
|
MongoClient |
MongoClient.dropIndex(String collection,
String indexName,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Drops the index given its name.
|
MongoClient |
MongoClient.find(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<List<io.vertx.core.json.JsonObject>>> resultHandler)
Find matching documents in the specified collection
|
MongoClient |
MongoClient.findOne(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject fields,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Find a single matching document in the specified collection
|
MongoClient |
MongoClient.findOneAndDelete(String collection,
io.vertx.core.json.JsonObject query,
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.
|
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.
|
MongoClient |
MongoClient.findOneAndReplace(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
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.
|
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.
|
MongoClient |
MongoClient.findOneAndUpdate(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
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.
|
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.
|
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
|
MongoClient |
MongoClient.getCollections(io.vertx.core.Handler<io.vertx.core.AsyncResult<List<String>>> resultHandler)
Get a list of all collections in the database.
|
MongoClient |
MongoClient.insert(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Insert a document in the specified collection
|
MongoClient |
MongoClient.insertWithOptions(String collection,
io.vertx.core.json.JsonObject document,
WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Insert a document in the specified collection with the specified write option
|
MongoClient |
MongoClient.listIndexes(String collection,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonArray>> resultHandler)
Get all the indexes in this collection.
|
MongoClient |
MongoClient.remove(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
use instead
removeDocuments(String, JsonObject, Handler) |
MongoClient |
MongoClient.removeDocument(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocuments(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove matching documents from a collection and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeDocumentWithOptions(String collection,
io.vertx.core.json.JsonObject query,
WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
MongoClient |
MongoClient.removeOne(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
instead use
removeDocument(String, JsonObject, Handler) |
MongoClient |
MongoClient.removeOneWithOptions(String collection,
io.vertx.core.json.JsonObject query,
WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoClient |
MongoClient.removeWithOptions(String collection,
io.vertx.core.json.JsonObject query,
WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoClient |
MongoClient.replace(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoClient |
MongoClient.replaceDocuments(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientUpdateResult>> resultHandler)
Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.replaceDocumentsWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientUpdateResult>> resultHandler)
Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.replaceWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject replace,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoClient |
MongoClient.runCommand(String commandName,
io.vertx.core.json.JsonObject command,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.core.json.JsonObject>> resultHandler)
Run an arbitrary MongoDB command.
|
MongoClient |
MongoClient.save(String collection,
io.vertx.core.json.JsonObject document,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Save a document in the specified collection
|
MongoClient |
MongoClient.saveWithOptions(String collection,
io.vertx.core.json.JsonObject document,
WriteOption writeOption,
io.vertx.core.Handler<io.vertx.core.AsyncResult<String>> resultHandler)
Save a document in the specified collection with the specified write option
|
MongoClient |
MongoClient.update(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoClient |
MongoClient.updateCollection(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientUpdateResult>> resultHandler)
Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.updateCollectionWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<MongoClientUpdateResult>> resultHandler)
Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
MongoClient |
MongoClient.updateWithOptions(String collection,
io.vertx.core.json.JsonObject query,
io.vertx.core.json.JsonObject update,
UpdateOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> resultHandler)
Deprecated.
|
Copyright © 2019 Eclipse. All rights reserved.