public class MongoService extends MongoClient
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<MongoService> |
__TYPE_ARG |
static String |
DEFAULT_DB_NAME
The name of the default database
|
static String |
DEFAULT_POOL_NAME
The name of the default pool
|
| Constructor and Description |
|---|
MongoService(MongoService delegate) |
MongoService(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
MongoService |
bulkWrite(String collection,
List<BulkOperation> operations,
Handler<AsyncResult<MongoClientBulkWriteResult>> resultHandler)
Execute a bulk operation.
|
Observable<MongoClientBulkWriteResult> |
bulkWriteObservable(String collection,
List<BulkOperation> operations)
Deprecated.
|
MongoService |
bulkWriteWithOptions(String collection,
List<BulkOperation> operations,
BulkWriteOptions bulkWriteOptions,
Handler<AsyncResult<MongoClientBulkWriteResult>> resultHandler)
Execute a bulk operation with the specified write options.
|
Observable<MongoClientBulkWriteResult> |
bulkWriteWithOptionsObservable(String collection,
List<BulkOperation> operations,
BulkWriteOptions bulkWriteOptions)
Deprecated.
|
void |
close()
Close the client and release its resources
|
MongoService |
count(String collection,
JsonObject query,
Handler<AsyncResult<Long>> resultHandler)
Count matching documents in a collection.
|
Observable<Long> |
countObservable(String collection,
JsonObject query)
Deprecated.
|
MongoService |
createCollection(String collectionName,
Handler<AsyncResult<Void>> resultHandler)
Create a new collection
|
Observable<Void> |
createCollectionObservable(String collectionName)
Deprecated.
|
static MongoService |
createEventBusProxy(Vertx vertx,
String address)
Create a proxy to a service that is deployed somewhere on the event bus
|
MongoService |
createIndex(String collection,
JsonObject key,
Handler<AsyncResult<Void>> resultHandler)
Creates an index.
|
Observable<Void> |
createIndexObservable(String collection,
JsonObject key)
Deprecated.
|
MongoService |
createIndexWithOptions(String collection,
JsonObject key,
IndexOptions options,
Handler<AsyncResult<Void>> resultHandler)
Creates an index.
|
Observable<Void> |
createIndexWithOptionsObservable(String collection,
JsonObject key,
IndexOptions options)
Deprecated.
|
MongoService |
distinct(String collection,
String fieldName,
String resultClassname,
Handler<AsyncResult<JsonArray>> resultHandler)
Gets the distinct values of the specified field name.
|
Observable<JsonArray> |
distinctObservable(String collection,
String fieldName,
String resultClassname)
Deprecated.
|
MongoService |
distinctWithQuery(String collection,
String fieldName,
String resultClassname,
JsonObject query,
Handler<AsyncResult<JsonArray>> resultHandler)
Gets the distinct values of the specified field name filtered by specified query.
|
Observable<JsonArray> |
distinctWithQueryObservable(String collection,
String fieldName,
String resultClassname,
JsonObject query)
Deprecated.
|
MongoService |
dropCollection(String collection,
Handler<AsyncResult<Void>> resultHandler)
Drop a collection
|
Observable<Void> |
dropCollectionObservable(String collection)
Deprecated.
|
MongoService |
dropIndex(String collection,
String indexName,
Handler<AsyncResult<Void>> resultHandler)
Drops the index given its name.
|
Observable<Void> |
dropIndexObservable(String collection,
String indexName)
Deprecated.
|
boolean |
equals(Object o) |
MongoService |
find(String collection,
JsonObject query,
Handler<AsyncResult<List<JsonObject>>> resultHandler)
Find matching documents in the specified collection
|
Observable<List<JsonObject>> |
findObservable(String collection,
JsonObject query)
Deprecated.
|
MongoService |
findOne(String collection,
JsonObject query,
JsonObject fields,
Handler<AsyncResult<JsonObject>> resultHandler)
Find a single matching document in the specified collection
|
MongoService |
findOneAndDelete(String collection,
JsonObject query,
Handler<AsyncResult<JsonObject>> resultHandler)
Find a single matching document in the specified collection and delete it.
|
Observable<JsonObject> |
findOneAndDeleteObservable(String collection,
JsonObject query)
Deprecated.
|
MongoService |
findOneAndDeleteWithOptions(String collection,
JsonObject query,
FindOptions findOptions,
Handler<AsyncResult<JsonObject>> resultHandler)
Find a single matching document in the specified collection and delete it.
|
Observable<JsonObject> |
findOneAndDeleteWithOptionsObservable(String collection,
JsonObject query,
FindOptions findOptions)
Deprecated.
|
MongoService |
findOneAndReplace(String collection,
JsonObject query,
JsonObject replace,
Handler<AsyncResult<JsonObject>> resultHandler)
Find a single matching document in the specified collection and replace it.
|
Observable<JsonObject> |
findOneAndReplaceObservable(String collection,
JsonObject query,
JsonObject replace)
Deprecated.
|
MongoService |
findOneAndReplaceWithOptions(String collection,
JsonObject query,
JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions,
Handler<AsyncResult<JsonObject>> resultHandler)
Find a single matching document in the specified collection and replace it.
|
Observable<JsonObject> |
findOneAndReplaceWithOptionsObservable(String collection,
JsonObject query,
JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions)
Deprecated.
|
MongoService |
findOneAndUpdate(String collection,
JsonObject query,
JsonObject update,
Handler<AsyncResult<JsonObject>> resultHandler)
Find a single matching document in the specified collection and update it.
|
Observable<JsonObject> |
findOneAndUpdateObservable(String collection,
JsonObject query,
JsonObject update)
Deprecated.
|
MongoService |
findOneAndUpdateWithOptions(String collection,
JsonObject query,
JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions,
Handler<AsyncResult<JsonObject>> resultHandler)
Find a single matching document in the specified collection and update it.
|
Observable<JsonObject> |
findOneAndUpdateWithOptionsObservable(String collection,
JsonObject query,
JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions)
Deprecated.
|
Observable<JsonObject> |
findOneObservable(String collection,
JsonObject query,
JsonObject fields)
Deprecated.
|
MongoService |
findWithOptions(String collection,
JsonObject query,
FindOptions options,
Handler<AsyncResult<List<JsonObject>>> resultHandler)
Find matching documents in the specified collection, specifying options
|
Observable<List<JsonObject>> |
findWithOptionsObservable(String collection,
JsonObject query,
FindOptions options)
Deprecated.
|
MongoService |
getCollections(Handler<AsyncResult<List<String>>> resultHandler)
Get a list of all collections in the database.
|
Observable<List<String>> |
getCollectionsObservable()
Deprecated.
|
MongoService |
getDelegate() |
int |
hashCode() |
MongoService |
insert(String collection,
JsonObject document,
Handler<AsyncResult<String>> resultHandler)
Insert a document in the specified collection
|
Observable<String> |
insertObservable(String collection,
JsonObject document)
Deprecated.
|
MongoService |
insertWithOptions(String collection,
JsonObject document,
WriteOption writeOption,
Handler<AsyncResult<String>> resultHandler)
Insert a document in the specified collection with the specified write option
|
Observable<String> |
insertWithOptionsObservable(String collection,
JsonObject document,
WriteOption writeOption)
Deprecated.
|
MongoService |
listIndexes(String collection,
Handler<AsyncResult<JsonArray>> resultHandler)
Get all the indexes in this collection.
|
Observable<JsonArray> |
listIndexesObservable(String collection)
Deprecated.
|
static MongoService |
newInstance(MongoService arg) |
MongoService |
remove(String collection,
JsonObject query,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoService |
removeDocument(String collection,
JsonObject query,
Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result
|
Observable<MongoClientDeleteResult> |
removeDocumentObservable(String collection,
JsonObject query)
Deprecated.
|
MongoService |
removeDocuments(String collection,
JsonObject query,
Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove matching documents from a collection and return the handler with MongoClientDeleteResult result
|
Observable<MongoClientDeleteResult> |
removeDocumentsObservable(String collection,
JsonObject query)
Deprecated.
|
MongoService |
removeDocumentsWithOptions(String collection,
JsonObject query,
WriteOption writeOption,
Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
Observable<MongoClientDeleteResult> |
removeDocumentsWithOptionsObservable(String collection,
JsonObject query,
WriteOption writeOption)
Deprecated.
|
MongoService |
removeDocumentWithOptions(String collection,
JsonObject query,
WriteOption writeOption,
Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
Observable<MongoClientDeleteResult> |
removeDocumentWithOptionsObservable(String collection,
JsonObject query,
WriteOption writeOption)
Deprecated.
|
Observable<Void> |
removeObservable(String collection,
JsonObject query)
Deprecated.
|
MongoService |
removeOne(String collection,
JsonObject query,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
Observable<Void> |
removeOneObservable(String collection,
JsonObject query)
Deprecated.
|
MongoService |
removeOneWithOptions(String collection,
JsonObject query,
WriteOption writeOption,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
Observable<Void> |
removeOneWithOptionsObservable(String collection,
JsonObject query,
WriteOption writeOption)
Deprecated.
|
MongoService |
removeWithOptions(String collection,
JsonObject query,
WriteOption writeOption,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
Observable<Void> |
removeWithOptionsObservable(String collection,
JsonObject query,
WriteOption writeOption)
Deprecated.
|
MongoService |
replace(String collection,
JsonObject query,
JsonObject replace,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoService |
replaceDocuments(String collection,
JsonObject query,
JsonObject replace,
Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
Observable<MongoClientUpdateResult> |
replaceDocumentsObservable(String collection,
JsonObject query,
JsonObject replace)
Deprecated.
|
MongoService |
replaceDocumentsWithOptions(String collection,
JsonObject query,
JsonObject replace,
UpdateOptions options,
Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
Observable<MongoClientUpdateResult> |
replaceDocumentsWithOptionsObservable(String collection,
JsonObject query,
JsonObject replace,
UpdateOptions options)
Deprecated.
|
Observable<Void> |
replaceObservable(String collection,
JsonObject query,
JsonObject replace)
Deprecated.
|
MongoService |
replaceWithOptions(String collection,
JsonObject query,
JsonObject replace,
UpdateOptions options,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
Observable<Void> |
replaceWithOptionsObservable(String collection,
JsonObject query,
JsonObject replace,
UpdateOptions options)
Deprecated.
|
MongoService |
runCommand(String commandName,
JsonObject command,
Handler<AsyncResult<JsonObject>> resultHandler)
Run an arbitrary MongoDB command.
|
Observable<JsonObject> |
runCommandObservable(String commandName,
JsonObject command)
Deprecated.
|
Single<MongoClientBulkWriteResult> |
rxBulkWrite(String collection,
List<BulkOperation> operations)
Execute a bulk operation.
|
Single<MongoClientBulkWriteResult> |
rxBulkWriteWithOptions(String collection,
List<BulkOperation> operations,
BulkWriteOptions bulkWriteOptions)
Execute a bulk operation with the specified write options.
|
Single<Long> |
rxCount(String collection,
JsonObject query)
Count matching documents in a collection.
|
Single<Void> |
rxCreateCollection(String collectionName)
Create a new collection
|
Single<Void> |
rxCreateIndex(String collection,
JsonObject key)
Creates an index.
|
Single<Void> |
rxCreateIndexWithOptions(String collection,
JsonObject key,
IndexOptions options)
Creates an index.
|
Single<JsonArray> |
rxDistinct(String collection,
String fieldName,
String resultClassname)
Gets the distinct values of the specified field name.
|
Single<JsonArray> |
rxDistinctWithQuery(String collection,
String fieldName,
String resultClassname,
JsonObject query)
Gets the distinct values of the specified field name filtered by specified query.
|
Single<Void> |
rxDropCollection(String collection)
Drop a collection
|
Single<Void> |
rxDropIndex(String collection,
String indexName)
Drops the index given its name.
|
Single<List<JsonObject>> |
rxFind(String collection,
JsonObject query)
Find matching documents in the specified collection
|
Single<JsonObject> |
rxFindOne(String collection,
JsonObject query,
JsonObject fields)
Find a single matching document in the specified collection
|
Single<JsonObject> |
rxFindOneAndDelete(String collection,
JsonObject query)
Find a single matching document in the specified collection and delete it.
|
Single<JsonObject> |
rxFindOneAndDeleteWithOptions(String collection,
JsonObject query,
FindOptions findOptions)
Find a single matching document in the specified collection and delete it.
|
Single<JsonObject> |
rxFindOneAndReplace(String collection,
JsonObject query,
JsonObject replace)
Find a single matching document in the specified collection and replace it.
|
Single<JsonObject> |
rxFindOneAndReplaceWithOptions(String collection,
JsonObject query,
JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions)
Find a single matching document in the specified collection and replace it.
|
Single<JsonObject> |
rxFindOneAndUpdate(String collection,
JsonObject query,
JsonObject update)
Find a single matching document in the specified collection and update it.
|
Single<JsonObject> |
rxFindOneAndUpdateWithOptions(String collection,
JsonObject query,
JsonObject update,
FindOptions findOptions,
UpdateOptions updateOptions)
Find a single matching document in the specified collection and update it.
|
Single<List<JsonObject>> |
rxFindWithOptions(String collection,
JsonObject query,
FindOptions options)
Find matching documents in the specified collection, specifying options
|
Single<List<String>> |
rxGetCollections()
Get a list of all collections in the database.
|
Single<String> |
rxInsert(String collection,
JsonObject document)
Insert a document in the specified collection
|
Single<String> |
rxInsertWithOptions(String collection,
JsonObject document,
WriteOption writeOption)
Insert a document in the specified collection with the specified write option
|
Single<JsonArray> |
rxListIndexes(String collection)
Get all the indexes in this collection.
|
Single<Void> |
rxRemove(String collection,
JsonObject query)
Deprecated.
|
Single<MongoClientDeleteResult> |
rxRemoveDocument(String collection,
JsonObject query)
Remove a single matching document from a collection and return the handler with MongoClientDeleteResult result
|
Single<MongoClientDeleteResult> |
rxRemoveDocuments(String collection,
JsonObject query)
Remove matching documents from a collection and return the handler with MongoClientDeleteResult result
|
Single<MongoClientDeleteResult> |
rxRemoveDocumentsWithOptions(String collection,
JsonObject query,
WriteOption writeOption)
Remove matching documents from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
Single<MongoClientDeleteResult> |
rxRemoveDocumentWithOptions(String collection,
JsonObject query,
WriteOption writeOption)
Remove a single matching document from a collection with the specified write option and return the handler with MongoClientDeleteResult result
|
Single<Void> |
rxRemoveOne(String collection,
JsonObject query)
Deprecated.
|
Single<Void> |
rxRemoveOneWithOptions(String collection,
JsonObject query,
WriteOption writeOption)
Deprecated.
|
Single<Void> |
rxRemoveWithOptions(String collection,
JsonObject query,
WriteOption writeOption)
Deprecated.
|
Single<Void> |
rxReplace(String collection,
JsonObject query,
JsonObject replace)
Deprecated.
|
Single<MongoClientUpdateResult> |
rxReplaceDocuments(String collection,
JsonObject query,
JsonObject replace)
Replace matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
Single<MongoClientUpdateResult> |
rxReplaceDocumentsWithOptions(String collection,
JsonObject query,
JsonObject replace,
UpdateOptions options)
Replace matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
Single<Void> |
rxReplaceWithOptions(String collection,
JsonObject query,
JsonObject replace,
UpdateOptions options)
Deprecated.
|
Single<JsonObject> |
rxRunCommand(String commandName,
JsonObject command)
Run an arbitrary MongoDB command.
|
Single<String> |
rxSave(String collection,
JsonObject document)
Save a document in the specified collection
|
Single<String> |
rxSaveWithOptions(String collection,
JsonObject document,
WriteOption writeOption)
Save a document in the specified collection with the specified write option
|
Single<Void> |
rxUpdate(String collection,
JsonObject query,
JsonObject update)
Deprecated.
|
Single<MongoClientUpdateResult> |
rxUpdateCollection(String collection,
JsonObject query,
JsonObject update)
Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
Single<MongoClientUpdateResult> |
rxUpdateCollectionWithOptions(String collection,
JsonObject query,
JsonObject update,
UpdateOptions options)
Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
Single<Void> |
rxUpdateWithOptions(String collection,
JsonObject query,
JsonObject update,
UpdateOptions options)
Deprecated.
|
MongoService |
save(String collection,
JsonObject document,
Handler<AsyncResult<String>> resultHandler)
Save a document in the specified collection
|
Observable<String> |
saveObservable(String collection,
JsonObject document)
Deprecated.
|
MongoService |
saveWithOptions(String collection,
JsonObject document,
WriteOption writeOption,
Handler<AsyncResult<String>> resultHandler)
Save a document in the specified collection with the specified write option
|
Observable<String> |
saveWithOptionsObservable(String collection,
JsonObject document,
WriteOption writeOption)
Deprecated.
|
String |
toString() |
MongoService |
update(String collection,
JsonObject query,
JsonObject update,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
MongoService |
updateCollection(String collection,
JsonObject query,
JsonObject update,
Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
Update matching documents in the specified collection and return the handler with MongoClientUpdateResult result
|
Observable<MongoClientUpdateResult> |
updateCollectionObservable(String collection,
JsonObject query,
JsonObject update)
Deprecated.
|
MongoService |
updateCollectionWithOptions(String collection,
JsonObject query,
JsonObject update,
UpdateOptions options,
Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
Update matching documents in the specified collection, specifying options and return the handler with MongoClientUpdateResult result
|
Observable<MongoClientUpdateResult> |
updateCollectionWithOptionsObservable(String collection,
JsonObject query,
JsonObject update,
UpdateOptions options)
Deprecated.
|
Observable<Void> |
updateObservable(String collection,
JsonObject query,
JsonObject update)
Deprecated.
|
MongoService |
updateWithOptions(String collection,
JsonObject query,
JsonObject update,
UpdateOptions options,
Handler<AsyncResult<Void>> resultHandler)
Deprecated.
|
Observable<Void> |
updateWithOptionsObservable(String collection,
JsonObject query,
JsonObject update,
UpdateOptions options)
Deprecated.
|
aggregate, aggregateWithOptions, create, createNonShared, createShared, createShared, distinctBatch, distinctBatchWithQuery, distinctBatchWithQuery, findBatch, findBatchWithOptions, newInstancepublic static final io.vertx.lang.rx.TypeArg<MongoService> __TYPE_ARG
public static final String DEFAULT_POOL_NAME
public static final String DEFAULT_DB_NAME
public MongoService(MongoService delegate)
public MongoService(Object delegate)
public String toString()
toString in class MongoClientpublic boolean equals(Object o)
equals in class MongoClientpublic int hashCode()
hashCode in class MongoClientpublic MongoService getDelegate()
getDelegate in class MongoClientpublic static MongoService createEventBusProxy(Vertx vertx, String address)
vertx - the Vert.x instanceaddress - the address the service is listening on on the event buspublic MongoService save(String collection, JsonObject document, Handler<AsyncResult<String>> resultHandler)
MongoClientThis operation might change _id field of document parameter
save in class MongoClientcollection - the collectiondocument - the documentresultHandler - result handler will be provided with the id if document didn't already have one@Deprecated public Observable<String> saveObservable(String collection, JsonObject document)
MongoClientThis operation might change _id field of document parameter
saveObservable in class MongoClientcollection - the collectiondocument - the documentpublic Single<String> rxSave(String collection, JsonObject document)
MongoClientThis operation might change _id field of document parameter
rxSave in class MongoClientcollection - the collectiondocument - the documentpublic MongoService saveWithOptions(String collection, JsonObject document, WriteOption writeOption, Handler<AsyncResult<String>> resultHandler)
MongoClientThis operation might change _id field of document parameter
saveWithOptions in class MongoClientcollection - the collectiondocument - the documentwriteOption - the write option to useresultHandler - result handler will be provided with the id if document didn't already have one@Deprecated public Observable<String> saveWithOptionsObservable(String collection, JsonObject document, WriteOption writeOption)
MongoClientThis operation might change _id field of document parameter
saveWithOptionsObservable in class MongoClientcollection - the collectiondocument - the documentwriteOption - the write option to usepublic Single<String> rxSaveWithOptions(String collection, JsonObject document, WriteOption writeOption)
MongoClientThis operation might change _id field of document parameter
rxSaveWithOptions in class MongoClientcollection - the collectiondocument - the documentwriteOption - the write option to usepublic MongoService insert(String collection, JsonObject document, Handler<AsyncResult<String>> resultHandler)
MongoClientThis operation might change _id field of document parameter
insert in class MongoClientcollection - the collectiondocument - the documentresultHandler - result handler will be provided with the id if document didn't already have one@Deprecated public Observable<String> insertObservable(String collection, JsonObject document)
MongoClientThis operation might change _id field of document parameter
insertObservable in class MongoClientcollection - the collectiondocument - the documentpublic Single<String> rxInsert(String collection, JsonObject document)
MongoClientThis operation might change _id field of document parameter
rxInsert in class MongoClientcollection - the collectiondocument - the documentpublic MongoService insertWithOptions(String collection, JsonObject document, WriteOption writeOption, Handler<AsyncResult<String>> resultHandler)
MongoClientThis operation might change _id field of document parameter
insertWithOptions in class MongoClientcollection - the collectiondocument - the documentwriteOption - the write option to useresultHandler - result handler will be provided with the id if document didn't already have one@Deprecated public Observable<String> insertWithOptionsObservable(String collection, JsonObject document, WriteOption writeOption)
MongoClientThis operation might change _id field of document parameter
insertWithOptionsObservable in class MongoClientcollection - the collectiondocument - the documentwriteOption - the write option to usepublic Single<String> rxInsertWithOptions(String collection, JsonObject document, WriteOption writeOption)
MongoClientThis operation might change _id field of document parameter
rxInsertWithOptions in class MongoClientcollection - the collectiondocument - the documentwriteOption - the write option to use@Deprecated public MongoService update(String collection, JsonObject query, JsonObject update, Handler<AsyncResult<Void>> resultHandler)
MongoClientupdate in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedresultHandler - will be called when complete@Deprecated public Observable<Void> updateObservable(String collection, JsonObject query, JsonObject update)
MongoClientupdateObservable in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updated@Deprecated public Single<Void> rxUpdate(String collection, JsonObject query, JsonObject update)
MongoClientrxUpdate in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedpublic MongoService updateCollection(String collection, JsonObject query, JsonObject update, Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
MongoClientupdateCollection in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedresultHandler - will be called when complete@Deprecated public Observable<MongoClientUpdateResult> updateCollectionObservable(String collection, JsonObject query, JsonObject update)
MongoClientupdateCollectionObservable in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedpublic Single<MongoClientUpdateResult> rxUpdateCollection(String collection, JsonObject query, JsonObject update)
MongoClientrxUpdateCollection in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updated@Deprecated public MongoService updateWithOptions(String collection, JsonObject query, JsonObject update, UpdateOptions options, Handler<AsyncResult<Void>> resultHandler)
MongoClientupdateWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedoptions - options to configure the updateresultHandler - will be called when complete@Deprecated public Observable<Void> updateWithOptionsObservable(String collection, JsonObject query, JsonObject update, UpdateOptions options)
MongoClientupdateWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedoptions - options to configure the update@Deprecated public Single<Void> rxUpdateWithOptions(String collection, JsonObject query, JsonObject update, UpdateOptions options)
MongoClientrxUpdateWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedoptions - options to configure the updatepublic MongoService updateCollectionWithOptions(String collection, JsonObject query, JsonObject update, UpdateOptions options, Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
MongoClientupdateCollectionWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedoptions - options to configure the updateresultHandler - will be called when complete@Deprecated public Observable<MongoClientUpdateResult> updateCollectionWithOptionsObservable(String collection, JsonObject query, JsonObject update, UpdateOptions options)
MongoClientupdateCollectionWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedoptions - options to configure the updatepublic Single<MongoClientUpdateResult> rxUpdateCollectionWithOptions(String collection, JsonObject query, JsonObject update, UpdateOptions options)
MongoClientrxUpdateCollectionWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsupdate - used to describe how the documents will be updatedoptions - options to configure the update@Deprecated public MongoService replace(String collection, JsonObject query, JsonObject replace, Handler<AsyncResult<Void>> resultHandler)
MongoClientThis operation might change _id field of replace parameter
replace in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisresultHandler - will be called when complete@Deprecated public Observable<Void> replaceObservable(String collection, JsonObject query, JsonObject replace)
MongoClientThis operation might change _id field of replace parameter
replaceObservable in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with this@Deprecated public Single<Void> rxReplace(String collection, JsonObject query, JsonObject replace)
MongoClientThis operation might change _id field of replace parameter
rxReplace in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thispublic MongoService replaceDocuments(String collection, JsonObject query, JsonObject replace, Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
MongoClientreplaceDocuments in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisresultHandler - will be called when complete@Deprecated public Observable<MongoClientUpdateResult> replaceDocumentsObservable(String collection, JsonObject query, JsonObject replace)
MongoClientreplaceDocumentsObservable in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thispublic Single<MongoClientUpdateResult> rxReplaceDocuments(String collection, JsonObject query, JsonObject replace)
MongoClientrxReplaceDocuments in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with this@Deprecated public MongoService replaceWithOptions(String collection, JsonObject query, JsonObject replace, UpdateOptions options, Handler<AsyncResult<Void>> resultHandler)
MongoClientThis operation might change _id field of replace parameter
replaceWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisoptions - options to configure the replaceresultHandler - will be called when complete@Deprecated public Observable<Void> replaceWithOptionsObservable(String collection, JsonObject query, JsonObject replace, UpdateOptions options)
MongoClientThis operation might change _id field of replace parameter
replaceWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisoptions - options to configure the replace@Deprecated public Single<Void> rxReplaceWithOptions(String collection, JsonObject query, JsonObject replace, UpdateOptions options)
MongoClientThis operation might change _id field of replace parameter
rxReplaceWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisoptions - options to configure the replacepublic MongoService replaceDocumentsWithOptions(String collection, JsonObject query, JsonObject replace, UpdateOptions options, Handler<AsyncResult<MongoClientUpdateResult>> resultHandler)
MongoClientreplaceDocumentsWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisoptions - options to configure the replaceresultHandler - will be called when complete@Deprecated public Observable<MongoClientUpdateResult> replaceDocumentsWithOptionsObservable(String collection, JsonObject query, JsonObject replace, UpdateOptions options)
MongoClientreplaceDocumentsWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisoptions - options to configure the replacepublic Single<MongoClientUpdateResult> rxReplaceDocumentsWithOptions(String collection, JsonObject query, JsonObject replace, UpdateOptions options)
MongoClientrxReplaceDocumentsWithOptions in class MongoClientcollection - the collectionquery - query used to match the documentsreplace - all matching documents will be replaced with thisoptions - options to configure the replacepublic MongoService bulkWrite(String collection, List<BulkOperation> operations, Handler<AsyncResult<MongoClientBulkWriteResult>> resultHandler)
MongoClientbulkWrite in class MongoClientcollection - the collectionoperations - the operations to executeresultHandler - will be called with a MongoClientBulkWriteResult when complete@Deprecated public Observable<MongoClientBulkWriteResult> bulkWriteObservable(String collection, List<BulkOperation> operations)
MongoClientbulkWriteObservable in class MongoClientcollection - the collectionoperations - the operations to executepublic Single<MongoClientBulkWriteResult> rxBulkWrite(String collection, List<BulkOperation> operations)
MongoClientrxBulkWrite in class MongoClientcollection - the collectionoperations - the operations to executepublic MongoService bulkWriteWithOptions(String collection, List<BulkOperation> operations, BulkWriteOptions bulkWriteOptions, Handler<AsyncResult<MongoClientBulkWriteResult>> resultHandler)
MongoClientbulkWriteWithOptions in class MongoClientcollection - the collectionoperations - the operations to executebulkWriteOptions - the write optionsresultHandler - will be called with a MongoClientBulkWriteResult when complete@Deprecated public Observable<MongoClientBulkWriteResult> bulkWriteWithOptionsObservable(String collection, List<BulkOperation> operations, BulkWriteOptions bulkWriteOptions)
MongoClientbulkWriteWithOptionsObservable in class MongoClientcollection - the collectionoperations - the operations to executebulkWriteOptions - the write optionspublic Single<MongoClientBulkWriteResult> rxBulkWriteWithOptions(String collection, List<BulkOperation> operations, BulkWriteOptions bulkWriteOptions)
MongoClientrxBulkWriteWithOptions in class MongoClientcollection - the collectionoperations - the operations to executebulkWriteOptions - the write optionspublic MongoService find(String collection, JsonObject query, Handler<AsyncResult<List<JsonObject>>> resultHandler)
MongoClientfind in class MongoClientcollection - the collectionquery - query used to match documentsresultHandler - will be provided with list of documents@Deprecated public Observable<List<JsonObject>> findObservable(String collection, JsonObject query)
MongoClientfindObservable in class MongoClientcollection - the collectionquery - query used to match documentspublic Single<List<JsonObject>> rxFind(String collection, JsonObject query)
MongoClientrxFind in class MongoClientcollection - the collectionquery - query used to match documentspublic MongoService findWithOptions(String collection, JsonObject query, FindOptions options, Handler<AsyncResult<List<JsonObject>>> resultHandler)
MongoClientfindWithOptions in class MongoClientcollection - the collectionquery - query used to match documentsoptions - options to configure the findresultHandler - will be provided with list of documents@Deprecated public Observable<List<JsonObject>> findWithOptionsObservable(String collection, JsonObject query, FindOptions options)
MongoClientfindWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match documentsoptions - options to configure the findpublic Single<List<JsonObject>> rxFindWithOptions(String collection, JsonObject query, FindOptions options)
MongoClientrxFindWithOptions in class MongoClientcollection - the collectionquery - query used to match documentsoptions - options to configure the findpublic MongoService findOne(String collection, JsonObject query, JsonObject fields, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientThis operation might change _id field of query parameter
findOne in class MongoClientcollection - the collectionquery - the query used to match the documentfields - the fieldsresultHandler - will be provided with the document, if any@Deprecated public Observable<JsonObject> findOneObservable(String collection, JsonObject query, JsonObject fields)
MongoClientThis operation might change _id field of query parameter
findOneObservable in class MongoClientcollection - the collectionquery - the query used to match the documentfields - the fieldspublic Single<JsonObject> rxFindOne(String collection, JsonObject query, JsonObject fields)
MongoClientThis operation might change _id field of query parameter
rxFindOne in class MongoClientcollection - the collectionquery - the query used to match the documentfields - the fieldspublic MongoService findOneAndUpdate(String collection, JsonObject query, JsonObject update, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientThis operation might change _id field of query parameter
findOneAndUpdate in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - used to describe how the documents will be updatedresultHandler - will be provided with the document, if any@Deprecated public Observable<JsonObject> findOneAndUpdateObservable(String collection, JsonObject query, JsonObject update)
MongoClientThis operation might change _id field of query parameter
findOneAndUpdateObservable in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - used to describe how the documents will be updatedpublic Single<JsonObject> rxFindOneAndUpdate(String collection, JsonObject query, JsonObject update)
MongoClientThis operation might change _id field of query parameter
rxFindOneAndUpdate in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - used to describe how the documents will be updatedpublic MongoService findOneAndUpdateWithOptions(String collection, JsonObject query, JsonObject update, FindOptions findOptions, UpdateOptions updateOptions, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientThis operation might change _id field of query parameter
findOneAndUpdateWithOptions in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - used to describe how the documents will be updatedfindOptions - options to configure the findupdateOptions - options to configure the updateresultHandler - will be provided with the document, if any@Deprecated public Observable<JsonObject> findOneAndUpdateWithOptionsObservable(String collection, JsonObject query, JsonObject update, FindOptions findOptions, UpdateOptions updateOptions)
MongoClientThis operation might change _id field of query parameter
findOneAndUpdateWithOptionsObservable in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - used to describe how the documents will be updatedfindOptions - options to configure the findupdateOptions - options to configure the updatepublic Single<JsonObject> rxFindOneAndUpdateWithOptions(String collection, JsonObject query, JsonObject update, FindOptions findOptions, UpdateOptions updateOptions)
MongoClientThis operation might change _id field of query parameter
rxFindOneAndUpdateWithOptions in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - used to describe how the documents will be updatedfindOptions - options to configure the findupdateOptions - options to configure the updatepublic MongoService findOneAndReplace(String collection, JsonObject query, JsonObject replace, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientThis operation might change _id field of query parameter
findOneAndReplace in class MongoClientcollection - the collectionquery - the query used to match the documentreplace - the replacement documentresultHandler - will be provided with the document, if any@Deprecated public Observable<JsonObject> findOneAndReplaceObservable(String collection, JsonObject query, JsonObject replace)
MongoClientThis operation might change _id field of query parameter
findOneAndReplaceObservable in class MongoClientcollection - the collectionquery - the query used to match the documentreplace - the replacement documentpublic Single<JsonObject> rxFindOneAndReplace(String collection, JsonObject query, JsonObject replace)
MongoClientThis operation might change _id field of query parameter
rxFindOneAndReplace in class MongoClientcollection - the collectionquery - the query used to match the documentreplace - the replacement documentpublic MongoService findOneAndReplaceWithOptions(String collection, JsonObject query, JsonObject update, FindOptions findOptions, UpdateOptions updateOptions, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientThis operation might change _id field of query parameter
findOneAndReplaceWithOptions in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - the replacement documentfindOptions - options to configure the findupdateOptions - options to configure the updateresultHandler - will be provided with the document, if any@Deprecated public Observable<JsonObject> findOneAndReplaceWithOptionsObservable(String collection, JsonObject query, JsonObject update, FindOptions findOptions, UpdateOptions updateOptions)
MongoClientThis operation might change _id field of query parameter
findOneAndReplaceWithOptionsObservable in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - the replacement documentfindOptions - options to configure the findupdateOptions - options to configure the updatepublic Single<JsonObject> rxFindOneAndReplaceWithOptions(String collection, JsonObject query, JsonObject update, FindOptions findOptions, UpdateOptions updateOptions)
MongoClientThis operation might change _id field of query parameter
rxFindOneAndReplaceWithOptions in class MongoClientcollection - the collectionquery - the query used to match the documentupdate - the replacement documentfindOptions - options to configure the findupdateOptions - options to configure the updatepublic MongoService findOneAndDelete(String collection, JsonObject query, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientThis operation might change _id field of query parameter
findOneAndDelete in class MongoClientcollection - the collectionquery - the query used to match the documentresultHandler - will be provided with the deleted document, if any@Deprecated public Observable<JsonObject> findOneAndDeleteObservable(String collection, JsonObject query)
MongoClientThis operation might change _id field of query parameter
findOneAndDeleteObservable in class MongoClientcollection - the collectionquery - the query used to match the documentpublic Single<JsonObject> rxFindOneAndDelete(String collection, JsonObject query)
MongoClientThis operation might change _id field of query parameter
rxFindOneAndDelete in class MongoClientcollection - the collectionquery - the query used to match the documentpublic MongoService findOneAndDeleteWithOptions(String collection, JsonObject query, FindOptions findOptions, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientThis operation might change _id field of query parameter
findOneAndDeleteWithOptions in class MongoClientcollection - the collectionquery - the query used to match the documentfindOptions - options to configure the findresultHandler - will be provided with the deleted document, if any@Deprecated public Observable<JsonObject> findOneAndDeleteWithOptionsObservable(String collection, JsonObject query, FindOptions findOptions)
MongoClientThis operation might change _id field of query parameter
findOneAndDeleteWithOptionsObservable in class MongoClientcollection - the collectionquery - the query used to match the documentfindOptions - options to configure the findpublic Single<JsonObject> rxFindOneAndDeleteWithOptions(String collection, JsonObject query, FindOptions findOptions)
MongoClientThis operation might change _id field of query parameter
rxFindOneAndDeleteWithOptions in class MongoClientcollection - the collectionquery - the query used to match the documentfindOptions - options to configure the findpublic MongoService count(String collection, JsonObject query, Handler<AsyncResult<Long>> resultHandler)
MongoClientcount in class MongoClientcollection - the collectionquery - query used to match documentsresultHandler - will be provided with the number of matching documents@Deprecated public Observable<Long> countObservable(String collection, JsonObject query)
MongoClientcountObservable in class MongoClientcollection - the collectionquery - query used to match documentspublic Single<Long> rxCount(String collection, JsonObject query)
MongoClientrxCount in class MongoClientcollection - the collectionquery - query used to match documents@Deprecated public MongoService remove(String collection, JsonObject query, Handler<AsyncResult<Void>> resultHandler)
MongoClientremove in class MongoClientcollection - the collectionquery - query used to match documentsresultHandler - will be called when complete@Deprecated public Observable<Void> removeObservable(String collection, JsonObject query)
MongoClientremoveObservable in class MongoClientcollection - the collectionquery - query used to match documents@Deprecated public Single<Void> rxRemove(String collection, JsonObject query)
MongoClientrxRemove in class MongoClientcollection - the collectionquery - query used to match documentspublic MongoService removeDocuments(String collection, JsonObject query, Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
MongoClientremoveDocuments in class MongoClientcollection - the collectionquery - query used to match documentsresultHandler - will be called when complete@Deprecated public Observable<MongoClientDeleteResult> removeDocumentsObservable(String collection, JsonObject query)
MongoClientremoveDocumentsObservable in class MongoClientcollection - the collectionquery - query used to match documentspublic Single<MongoClientDeleteResult> rxRemoveDocuments(String collection, JsonObject query)
MongoClientrxRemoveDocuments in class MongoClientcollection - the collectionquery - query used to match documents@Deprecated public MongoService removeWithOptions(String collection, JsonObject query, WriteOption writeOption, Handler<AsyncResult<Void>> resultHandler)
MongoClientremoveWithOptions in class MongoClientcollection - the collectionquery - query used to match documentswriteOption - the write option to useresultHandler - will be called when complete@Deprecated public Observable<Void> removeWithOptionsObservable(String collection, JsonObject query, WriteOption writeOption)
MongoClientremoveWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match documentswriteOption - the write option to use@Deprecated public Single<Void> rxRemoveWithOptions(String collection, JsonObject query, WriteOption writeOption)
MongoClientrxRemoveWithOptions in class MongoClientcollection - the collectionquery - query used to match documentswriteOption - the write option to usepublic MongoService removeDocumentsWithOptions(String collection, JsonObject query, WriteOption writeOption, Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
MongoClientremoveDocumentsWithOptions in class MongoClientcollection - the collectionquery - query used to match documentswriteOption - the write option to useresultHandler - will be called when complete@Deprecated public Observable<MongoClientDeleteResult> removeDocumentsWithOptionsObservable(String collection, JsonObject query, WriteOption writeOption)
MongoClientremoveDocumentsWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match documentswriteOption - the write option to usepublic Single<MongoClientDeleteResult> rxRemoveDocumentsWithOptions(String collection, JsonObject query, WriteOption writeOption)
MongoClientrxRemoveDocumentsWithOptions in class MongoClientcollection - the collectionquery - query used to match documentswriteOption - the write option to use@Deprecated public MongoService removeOne(String collection, JsonObject query, Handler<AsyncResult<Void>> resultHandler)
MongoClientremoveOne in class MongoClientcollection - the collectionquery - query used to match documentresultHandler - will be called when complete@Deprecated public Observable<Void> removeOneObservable(String collection, JsonObject query)
MongoClientremoveOneObservable in class MongoClientcollection - the collectionquery - query used to match document@Deprecated public Single<Void> rxRemoveOne(String collection, JsonObject query)
MongoClientrxRemoveOne in class MongoClientcollection - the collectionquery - query used to match documentpublic MongoService removeDocument(String collection, JsonObject query, Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
MongoClientremoveDocument in class MongoClientcollection - the collectionquery - query used to match documentresultHandler - will be called when complete@Deprecated public Observable<MongoClientDeleteResult> removeDocumentObservable(String collection, JsonObject query)
MongoClientremoveDocumentObservable in class MongoClientcollection - the collectionquery - query used to match documentpublic Single<MongoClientDeleteResult> rxRemoveDocument(String collection, JsonObject query)
MongoClientrxRemoveDocument in class MongoClientcollection - the collectionquery - query used to match document@Deprecated public MongoService removeOneWithOptions(String collection, JsonObject query, WriteOption writeOption, Handler<AsyncResult<Void>> resultHandler)
MongoClientremoveOneWithOptions in class MongoClientcollection - the collectionquery - query used to match documentwriteOption - the write option to useresultHandler - will be called when complete@Deprecated public Observable<Void> removeOneWithOptionsObservable(String collection, JsonObject query, WriteOption writeOption)
MongoClientremoveOneWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match documentwriteOption - the write option to use@Deprecated public Single<Void> rxRemoveOneWithOptions(String collection, JsonObject query, WriteOption writeOption)
MongoClientrxRemoveOneWithOptions in class MongoClientcollection - the collectionquery - query used to match documentwriteOption - the write option to usepublic MongoService removeDocumentWithOptions(String collection, JsonObject query, WriteOption writeOption, Handler<AsyncResult<MongoClientDeleteResult>> resultHandler)
MongoClientremoveDocumentWithOptions in class MongoClientcollection - the collectionquery - query used to match documentwriteOption - the write option to useresultHandler - will be called when complete@Deprecated public Observable<MongoClientDeleteResult> removeDocumentWithOptionsObservable(String collection, JsonObject query, WriteOption writeOption)
MongoClientremoveDocumentWithOptionsObservable in class MongoClientcollection - the collectionquery - query used to match documentwriteOption - the write option to usepublic Single<MongoClientDeleteResult> rxRemoveDocumentWithOptions(String collection, JsonObject query, WriteOption writeOption)
MongoClientrxRemoveDocumentWithOptions in class MongoClientcollection - the collectionquery - query used to match documentwriteOption - the write option to usepublic MongoService createCollection(String collectionName, Handler<AsyncResult<Void>> resultHandler)
MongoClientcreateCollection in class MongoClientcollectionName - the name of the collectionresultHandler - will be called when complete@Deprecated public Observable<Void> createCollectionObservable(String collectionName)
MongoClientcreateCollectionObservable in class MongoClientcollectionName - the name of the collectionpublic Single<Void> rxCreateCollection(String collectionName)
MongoClientrxCreateCollection in class MongoClientcollectionName - the name of the collectionpublic MongoService getCollections(Handler<AsyncResult<List<String>>> resultHandler)
MongoClientgetCollections in class MongoClientresultHandler - will be called with a list of collections.@Deprecated public Observable<List<String>> getCollectionsObservable()
MongoClientgetCollectionsObservable in class MongoClientpublic Single<List<String>> rxGetCollections()
MongoClientrxGetCollections in class MongoClientpublic MongoService dropCollection(String collection, Handler<AsyncResult<Void>> resultHandler)
MongoClientdropCollection in class MongoClientcollection - the collectionresultHandler - will be called when complete@Deprecated public Observable<Void> dropCollectionObservable(String collection)
MongoClientdropCollectionObservable in class MongoClientcollection - the collectionpublic Single<Void> rxDropCollection(String collection)
MongoClientrxDropCollection in class MongoClientcollection - the collectionpublic MongoService createIndex(String collection, JsonObject key, Handler<AsyncResult<Void>> resultHandler)
MongoClientcreateIndex in class MongoClientcollection - the collectionkey - A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.resultHandler - will be called when complete@Deprecated public Observable<Void> createIndexObservable(String collection, JsonObject key)
MongoClientcreateIndexObservable in class MongoClientcollection - the collectionkey - A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.public Single<Void> rxCreateIndex(String collection, JsonObject key)
MongoClientrxCreateIndex in class MongoClientcollection - the collectionkey - A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.public MongoService createIndexWithOptions(String collection, JsonObject key, IndexOptions options, Handler<AsyncResult<Void>> resultHandler)
MongoClientcreateIndexWithOptions in class MongoClientcollection - the collectionkey - A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.options - the options for the indexresultHandler - will be called when complete@Deprecated public Observable<Void> createIndexWithOptionsObservable(String collection, JsonObject key, IndexOptions options)
MongoClientcreateIndexWithOptionsObservable in class MongoClientcollection - the collectionkey - A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.options - the options for the indexpublic Single<Void> rxCreateIndexWithOptions(String collection, JsonObject key, IndexOptions options)
MongoClientrxCreateIndexWithOptions in class MongoClientcollection - the collectionkey - A document that contains the field and value pairs where the field is the index key and the value describes the type of index for that field. For an ascending index on a field, specify a value of 1; for descending index, specify a value of -1.options - the options for the indexpublic MongoService listIndexes(String collection, Handler<AsyncResult<JsonArray>> resultHandler)
MongoClientlistIndexes in class MongoClientcollection - the collectionresultHandler - will be called when complete@Deprecated public Observable<JsonArray> listIndexesObservable(String collection)
MongoClientlistIndexesObservable in class MongoClientcollection - the collectionpublic Single<JsonArray> rxListIndexes(String collection)
MongoClientrxListIndexes in class MongoClientcollection - the collectionpublic MongoService dropIndex(String collection, String indexName, Handler<AsyncResult<Void>> resultHandler)
MongoClientdropIndex in class MongoClientcollection - the collectionindexName - the name of the index to removeresultHandler - will be called when complete@Deprecated public Observable<Void> dropIndexObservable(String collection, String indexName)
MongoClientdropIndexObservable in class MongoClientcollection - the collectionindexName - the name of the index to removepublic Single<Void> rxDropIndex(String collection, String indexName)
MongoClientrxDropIndex in class MongoClientcollection - the collectionindexName - the name of the index to removepublic MongoService runCommand(String commandName, JsonObject command, Handler<AsyncResult<JsonObject>> resultHandler)
MongoClientrunCommand in class MongoClientcommandName - the name of the commandcommand - the commandresultHandler - will be called with the result.@Deprecated public Observable<JsonObject> runCommandObservable(String commandName, JsonObject command)
MongoClientrunCommandObservable in class MongoClientcommandName - the name of the commandcommand - the commandpublic Single<JsonObject> rxRunCommand(String commandName, JsonObject command)
MongoClientrxRunCommand in class MongoClientcommandName - the name of the commandcommand - the commandpublic MongoService distinct(String collection, String fieldName, String resultClassname, Handler<AsyncResult<JsonArray>> resultHandler)
MongoClientdistinct in class MongoClientcollection - the collectionfieldName - the field nameresultHandler - will be provided with array of values.@Deprecated public Observable<JsonArray> distinctObservable(String collection, String fieldName, String resultClassname)
MongoClientdistinctObservable in class MongoClientcollection - the collectionfieldName - the field namepublic Single<JsonArray> rxDistinct(String collection, String fieldName, String resultClassname)
MongoClientrxDistinct in class MongoClientcollection - the collectionfieldName - the field namepublic MongoService distinctWithQuery(String collection, String fieldName, String resultClassname, JsonObject query, Handler<AsyncResult<JsonArray>> resultHandler)
MongoClientdistinctWithQuery in class MongoClientcollection - the collectionfieldName - the field namequery - the queryresultHandler - will be provided with array of values.@Deprecated public Observable<JsonArray> distinctWithQueryObservable(String collection, String fieldName, String resultClassname, JsonObject query)
MongoClientdistinctWithQueryObservable in class MongoClientcollection - the collectionfieldName - the field namequery - the querypublic Single<JsonArray> rxDistinctWithQuery(String collection, String fieldName, String resultClassname, JsonObject query)
MongoClientrxDistinctWithQuery in class MongoClientcollection - the collectionfieldName - the field namequery - the querypublic void close()
MongoClientclose in class MongoClientpublic static MongoService newInstance(MongoService arg)
Copyright © 2021 Eclipse. All rights reserved.