T - The type that this collection will encode documents from and decode documents to.public interface ReactiveMongoCollection<T>
| Modifier and Type | Method and Description |
|---|---|
io.smallrye.mutiny.Multi<T> |
aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
io.smallrye.mutiny.Multi<T> |
aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
AggregateOptions options)
Aggregates documents according to the specified aggregation pipeline.
|
<D> io.smallrye.mutiny.Multi<D> |
aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Aggregates documents according to the specified aggregation pipeline.
|
<D> io.smallrye.mutiny.Multi<D> |
aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz,
AggregateOptions options)
Aggregates documents according to the specified aggregation pipeline.
|
io.smallrye.mutiny.Multi<T> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
io.smallrye.mutiny.Multi<T> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline,
AggregateOptions options)
Aggregates documents according to the specified aggregation pipeline.
|
<D> io.smallrye.mutiny.Multi<D> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Aggregates documents according to the specified aggregation pipeline.
|
<D> io.smallrye.mutiny.Multi<D> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz,
AggregateOptions options)
Aggregates documents according to the specified aggregation pipeline.
|
io.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> |
bulkWrite(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
Executes a mix of inserts, updates, replaces, and deletes.
|
io.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> |
bulkWrite(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests,
com.mongodb.client.model.BulkWriteOptions options)
Executes a mix of inserts, updates, replaces, and deletes.
|
io.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> |
bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
Executes a mix of inserts, updates, replaces, and deletes.
|
io.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> |
bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests,
com.mongodb.client.model.BulkWriteOptions options)
Executes a mix of inserts, updates, replaces, and deletes.
|
io.smallrye.mutiny.Uni<Long> |
countDocuments()
Counts the number of documents in the collection.
|
io.smallrye.mutiny.Uni<Long> |
countDocuments(org.bson.conversions.Bson filter)
Counts the number of documents in the collection according to the given options.
|
io.smallrye.mutiny.Uni<Long> |
countDocuments(org.bson.conversions.Bson filter,
com.mongodb.client.model.CountOptions options)
Counts the number of documents in the collection according to the given options.
|
io.smallrye.mutiny.Uni<Long> |
countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession)
Counts the number of documents in the collection according to the given options.
|
io.smallrye.mutiny.Uni<Long> |
countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Counts the number of documents in the collection according to the given options.
|
io.smallrye.mutiny.Uni<Long> |
countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
com.mongodb.client.model.CountOptions options)
Counts the number of documents in the collection according to the given options.
|
io.smallrye.mutiny.Uni<String> |
createIndex(org.bson.conversions.Bson key)
Creates an index.
|
io.smallrye.mutiny.Uni<String> |
createIndex(org.bson.conversions.Bson key,
com.mongodb.client.model.IndexOptions options)
Creates an index.
|
io.smallrye.mutiny.Uni<String> |
createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson key)
Creates an index.
|
io.smallrye.mutiny.Uni<String> |
createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson key,
com.mongodb.client.model.IndexOptions options)
Creates an index.
|
io.smallrye.mutiny.Uni<List<String>> |
createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<com.mongodb.client.model.IndexModel> indexes)
Create multiple indexes.
|
io.smallrye.mutiny.Uni<List<String>> |
createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.model.CreateIndexOptions createIndexOptions)
Create multiple indexes.
|
io.smallrye.mutiny.Uni<List<String>> |
createIndexes(List<com.mongodb.client.model.IndexModel> indexes)
Create multiple indexes.
|
io.smallrye.mutiny.Uni<List<String>> |
createIndexes(List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.model.CreateIndexOptions createIndexOptions)
Create multiple indexes.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteMany(org.bson.conversions.Bson filter)
Removes all documents from the collection that match the given query filter.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteMany(org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
Removes all documents from the collection that match the given query filter.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Removes all documents from the collection that match the given query filter.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
Removes all documents from the collection that match the given query filter.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteOne(org.bson.conversions.Bson filter)
Removes at most one document from the collection that matches the given filter.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteOne(org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
Removes at most one document from the collection that matches the given filter.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Removes at most one document from the collection that matches the given filter.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> |
deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
Removes at most one document from the collection that matches the given filter.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz,
DistinctOptions options)
Gets the distinct values of the specified field name.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
Class<D> clazz,
DistinctOptions options)
Gets the distinct values of the specified field name.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz,
DistinctOptions options)
Gets the distinct values of the specified field name.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(String fieldName,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> io.smallrye.mutiny.Multi<D> |
distinct(String fieldName,
Class<D> clazz,
DistinctOptions options)
Gets the distinct values of the specified field name.
|
io.smallrye.mutiny.Uni<Void> |
drop()
Drops this collection from the database.
|
io.smallrye.mutiny.Uni<Void> |
drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
Drops this collection from the database.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(org.bson.conversions.Bson keys)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson keys)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
String indexName)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(String indexName)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndex(String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
io.smallrye.mutiny.Uni<Void> |
dropIndexes()
Drop all the indexes on this collection, except for the default on _id.
|
io.smallrye.mutiny.Uni<Void> |
dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
Drop all the indexes on this collection, except for the default on _id.
|
io.smallrye.mutiny.Uni<Void> |
dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drop all the indexes on this collection, except for the default on _id.
|
io.smallrye.mutiny.Uni<Void> |
dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drop all the indexes on this collection, except for the default on _id.
|
io.smallrye.mutiny.Uni<Long> |
estimatedDocumentCount()
Gets an estimate of the count of documents in a collection using collection metadata.
|
io.smallrye.mutiny.Uni<Long> |
estimatedDocumentCount(com.mongodb.client.model.EstimatedDocumentCountOptions options)
Gets an estimate of the count of documents in a collection using collection metadata.
|
io.smallrye.mutiny.Multi<T> |
find()
Finds all documents in the collection.
|
io.smallrye.mutiny.Multi<T> |
find(org.bson.conversions.Bson filter)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(org.bson.conversions.Bson filter,
Class<D> clazz)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(org.bson.conversions.Bson filter,
Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
io.smallrye.mutiny.Multi<T> |
find(org.bson.conversions.Bson filter,
FindOptions options)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(Class<D> clazz)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
io.smallrye.mutiny.Multi<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession)
Finds all documents in the collection.
|
io.smallrye.mutiny.Multi<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
Class<D> clazz)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
io.smallrye.mutiny.Multi<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
FindOptions options)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Finds all documents in the collection.
|
<D> io.smallrye.mutiny.Multi<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
io.smallrye.mutiny.Multi<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
FindOptions options)
Finds all documents in the collection.
|
io.smallrye.mutiny.Multi<T> |
find(FindOptions options)
Finds all documents in the collection.
|
io.smallrye.mutiny.Uni<T> |
findOneAndDelete(org.bson.conversions.Bson filter)
Atomically find a document and remove it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndDelete(org.bson.conversions.Bson filter,
com.mongodb.client.model.FindOneAndDeleteOptions options)
Atomically find a document and remove it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Atomically find a document and remove it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
com.mongodb.client.model.FindOneAndDeleteOptions options)
Atomically find a document and remove it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndReplace(org.bson.conversions.Bson filter,
T replacement)
Atomically find a document and replace it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndReplace(org.bson.conversions.Bson filter,
T replacement,
com.mongodb.client.model.FindOneAndReplaceOptions options)
Atomically find a document and replace it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
T replacement)
Atomically find a document and replace it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
T replacement,
com.mongodb.client.model.FindOneAndReplaceOptions options)
Atomically find a document and replace it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndUpdate(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Atomically find a document and update it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndUpdate(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.FindOneAndUpdateOptions options)
Atomically find a document and update it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Atomically find a document and update it.
|
io.smallrye.mutiny.Uni<T> |
findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.FindOneAndUpdateOptions options)
Atomically find a document and update it.
|
org.bson.codecs.configuration.CodecRegistry |
getCodecRegistry()
Gets the codec registry of this collection.
|
Class<T> |
getDocumentClass()
Get the class of documents stored in this collection.
|
com.mongodb.MongoNamespace |
getNamespace()
Gets the namespace of this collection.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> |
insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends T> documents)
Inserts a batch of documents.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> |
insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends T> documents,
com.mongodb.client.model.InsertManyOptions options)
Inserts a batch of documents.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> |
insertMany(List<? extends T> documents)
Inserts a batch of documents.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> |
insertMany(List<? extends T> documents,
com.mongodb.client.model.InsertManyOptions options)
Inserts a batch of documents.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> |
insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T document)
Inserts the provided document.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> |
insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T document,
com.mongodb.client.model.InsertOneOptions options)
Inserts the provided document.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> |
insertOne(T document)
Inserts the provided document.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> |
insertOne(T document,
com.mongodb.client.model.InsertOneOptions options)
Inserts the provided document.
|
io.smallrye.mutiny.Multi<org.bson.Document> |
listIndexes()
Get all the indexes in this collection.
|
<D> io.smallrye.mutiny.Multi<D> |
listIndexes(Class<D> clazz)
Get all the indexes in this collection.
|
io.smallrye.mutiny.Multi<org.bson.Document> |
listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
Get all the indexes in this collection.
|
<D> io.smallrye.mutiny.Multi<D> |
listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Get all the indexes in this collection.
|
io.smallrye.mutiny.Multi<T> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction)
Aggregates documents according to the specified map-reduce function.
|
<D> io.smallrye.mutiny.Multi<D> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<D> clazz)
Aggregates documents according to the specified map-reduce function.
|
<D> io.smallrye.mutiny.Multi<D> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<D> clazz,
MapReduceOptions options)
Aggregates documents according to the specified map-reduce function.
|
io.smallrye.mutiny.Multi<T> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
MapReduceOptions options)
Aggregates documents according to the specified map-reduce function.
|
io.smallrye.mutiny.Multi<T> |
mapReduce(String mapFunction,
String reduceFunction)
Aggregates documents according to the specified map-reduce function.
|
<D> io.smallrye.mutiny.Multi<D> |
mapReduce(String mapFunction,
String reduceFunction,
Class<D> clazz)
Aggregates documents according to the specified map-reduce function.
|
<D> io.smallrye.mutiny.Multi<D> |
mapReduce(String mapFunction,
String reduceFunction,
Class<D> clazz,
MapReduceOptions options)
Aggregates documents according to the specified map-reduce function.
|
io.smallrye.mutiny.Multi<T> |
mapReduce(String mapFunction,
String reduceFunction,
MapReduceOptions options)
Aggregates documents according to the specified map-reduce function.
|
io.smallrye.mutiny.Uni<Void> |
renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession,
com.mongodb.MongoNamespace newCollectionNamespace)
Rename the collection with oldCollectionName to the newCollectionName.
|
io.smallrye.mutiny.Uni<Void> |
renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession,
com.mongodb.MongoNamespace newCollectionNamespace,
com.mongodb.client.model.RenameCollectionOptions options)
Rename the collection with oldCollectionName to the newCollectionName.
|
io.smallrye.mutiny.Uni<Void> |
renameCollection(com.mongodb.MongoNamespace newCollectionNamespace)
Rename the collection with oldCollectionName to the newCollectionName.
|
io.smallrye.mutiny.Uni<Void> |
renameCollection(com.mongodb.MongoNamespace newCollectionNamespace,
com.mongodb.client.model.RenameCollectionOptions options)
Rename the collection with oldCollectionName to the newCollectionName.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
replaceOne(org.bson.conversions.Bson filter,
T replacement)
Replace a document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
replaceOne(org.bson.conversions.Bson filter,
T replacement,
com.mongodb.client.model.ReplaceOptions options)
Replace a document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
replaceOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
T replacement)
Replace a document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
replaceOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
T replacement,
com.mongodb.client.model.ReplaceOptions options)
Replace a document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateMany(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Update all documents in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateMany(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
Update all documents in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Update all documents in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
Update all documents in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateOne(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Update a single document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateOne(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
Update a single document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Update a single document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> |
updateOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
Update a single document in the collection according to the specified arguments.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch()
Creates a change stream for this collection.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(ChangeStreamOptions options)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(Class<D> clazz)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(Class<D> clazz,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
Creates a change stream for this collection.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this collection.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this collection.
|
io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(List<? extends org.bson.conversions.Bson> pipeline,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Creates a change stream for this collection.
|
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
<NewTDocument> |
withDocumentClass(Class<NewTDocument> clazz)
Create a new ReactiveMongoCollection instance with a different default class to cast any documents returned from the
database into..
|
com.mongodb.MongoNamespace getNamespace()
Class<T> getDocumentClass()
io.smallrye.mutiny.Uni<Long> estimatedDocumentCount()
Uni completed with the estimated number of documentsio.smallrye.mutiny.Uni<Long> estimatedDocumentCount(com.mongodb.client.model.EstimatedDocumentCountOptions options)
options - the options describing the countUni completed with the estimated number of documentsio.smallrye.mutiny.Uni<Long> countDocuments()
Uni completed with the number of documentsio.smallrye.mutiny.Uni<Long> countDocuments(org.bson.conversions.Bson filter)
filter - the query filterUni completed with the number of documentsio.smallrye.mutiny.Uni<Long> countDocuments(org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
filter - the query filteroptions - the options describing the countUni completed with the number of documentsio.smallrye.mutiny.Uni<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession - the client session with which to associate this operationUni completed with the number of documentsio.smallrye.mutiny.Uni<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession - the client session with which to associate this operationfilter - the query filterUni completed with the number of documentsio.smallrye.mutiny.Uni<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
clientSession - the client session with which to associate this operationfilter - the query filteroptions - the options describing the countUni completed with the number of documents<D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, Class<D> clazz)
D - the target type of the iterable.fieldName - the field name*clazz - the default class to cast any distinct items into.Multi emitting the sequence of distinct values<D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
D - the target type of the iterable.fieldName - the field namefilter - the query filterclazz - the default class to cast any distinct items into.Multi emitting the sequence of distinct values<D> io.smallrye.mutiny.Multi<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
Class<D> clazz)
D - the target type of the iterable.clientSession - the client session with which to associate this operationfieldName - the field nameclazz - the default class to cast any distinct items into.Multi emitting the sequence of distinct values<D> io.smallrye.mutiny.Multi<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz)
D - the target type of the iterable.clientSession - the client session with which to associate this operationfieldName - the field namefilter - the query filterclazz - the default class to cast any distinct items into.Multi emitting the sequence of distinct values<D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, Class<D> clazz, DistinctOptions options)
D - the target type of the iterable.fieldName - the field nameclazz - the default class to cast any distinct items into.options - the stream optionsMulti emitting the sequence of distinct values<D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz, DistinctOptions options)
D - the target type of the iterable.fieldName - the field namefilter - the query filterclazz - the default class to cast any distinct items into.options - the stream optionsMulti emitting the sequence of distinct values<D> io.smallrye.mutiny.Multi<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
Class<D> clazz,
DistinctOptions options)
D - the target type of the iterable.clientSession - the client session with which to associate this operationfieldName - the field nameclazz - the default class to cast any distinct items into.options - the stream optionsMulti emitting the sequence of distinct values<D> io.smallrye.mutiny.Multi<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz,
DistinctOptions options)
D - the target type of the iterable.clientSession - the client session with which to associate this operationfieldName - the field namefilter - the query filterclazz - the default class to cast any distinct items into.options - the stream optionsMulti emitting the sequence of distinct valuesio.smallrye.mutiny.Multi<T> find()
<D> io.smallrye.mutiny.Multi<D> find(Class<D> clazz)
D - the target document type of the iterable.clazz - the class to decode each document intoio.smallrye.mutiny.Multi<T> find(org.bson.conversions.Bson filter)
filter - the query filter<D> io.smallrye.mutiny.Multi<D> find(org.bson.conversions.Bson filter,
Class<D> clazz)
D - the target document type of the iterable.filter - the query filterclazz - the class to decode each document intoio.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession - the client session with which to associate this operation<D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationclazz - the class to decode each document intoio.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession - the client session with which to associate this operationfilter - the query filter<D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
Class<D> clazz)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationfilter - the query filterclazz - the class to decode each document intoio.smallrye.mutiny.Multi<T> find(FindOptions options)
options - the stream options<D> io.smallrye.mutiny.Multi<D> find(Class<D> clazz, FindOptions options)
D - the target document type of the iterable.clazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<T> find(org.bson.conversions.Bson filter, FindOptions options)
filter - the query filter<D> io.smallrye.mutiny.Multi<D> find(org.bson.conversions.Bson filter,
Class<D> clazz,
FindOptions options)
D - the target document type of the iterable.filter - the query filterclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, FindOptions options)
clientSession - the client session with which to associate this operationoptions - the stream options<D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz,
FindOptions options)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, FindOptions options)
clientSession - the client session with which to associate this operationfilter - the query filteroptions - the stream options<D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
Class<D> clazz,
FindOptions options)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationfilter - the query filterclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline)
pipeline - the aggregate pipeline<D> io.smallrye.mutiny.Multi<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
D - the target document type of the iterable.pipeline - the aggregate pipelineclazz - the class to decode each document intoio.smallrye.mutiny.Multi<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
clientSession - the client session with which to associate this operationpipeline - the aggregate pipeline<D> io.smallrye.mutiny.Multi<D> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationpipeline - the aggregate pipelineclazz - the class to decode each document intoio.smallrye.mutiny.Multi<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
pipeline - the aggregate pipelineoptions - the stream options<D> io.smallrye.mutiny.Multi<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz, AggregateOptions options)
D - the target document type of the iterable.pipeline - the aggregate pipelineclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
clientSession - the client session with which to associate this operationpipeline - the aggregate pipelineoptions - the stream options<D> io.smallrye.mutiny.Multi<D> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz,
AggregateOptions options)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationpipeline - the aggregate pipelineclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch()
<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz)
D - the target document type of the iterable.clazz - the class to decode each document intoio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline)
pipeline - the aggregation pipeline to apply to the change stream<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
D - the target document type of the iterable.pipeline - the aggregation pipeline to apply to the change streamclazz - the class to decode each document intoio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession - the client session with which to associate this operation<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationclazz - the class to decode each document intoio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
clientSession - the client session with which to associate this operationpipeline - the aggregation pipeline to apply to the change stream<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationpipeline - the aggregation pipeline to apply to the change streamclazz - the class to decode each document intoio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(ChangeStreamOptions options)
options - the stream options<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz, ChangeStreamOptions options)
D - the target document type of the iterable.clazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
pipeline - the aggregation pipeline to apply to the change streamoptions - the stream options<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz, ChangeStreamOptions options)
D - the target document type of the iterable.pipeline - the aggregation pipeline to apply to the change streamclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
ChangeStreamOptions options)
clientSession - the client session with which to associate this operationoptions - the stream options<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz,
ChangeStreamOptions options)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
ChangeStreamOptions options)
clientSession - the client session with which to associate this operationpipeline - the aggregation pipeline to apply to the change streamoptions - the stream options<D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz,
ChangeStreamOptions options)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationpipeline - the aggregation pipeline to apply to the change streamclazz - the class to decode each document intooptions - the stream optionsio.smallrye.mutiny.Multi<T> mapReduce(String mapFunction, String reduceFunction)
mapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.Multi containing the result of the map-reduce operation<D> io.smallrye.mutiny.Multi<D> mapReduce(String mapFunction, String reduceFunction, Class<D> clazz)
D - the target document type of the iterable.mapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.clazz - the class to decode each resulting document into.Multi containing the result of the map-reduce operationio.smallrye.mutiny.Multi<T> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction)
clientSession - the client session with which to associate this operationmapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.Multi containing the result of the map-reduce operation<D> io.smallrye.mutiny.Multi<D> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<D> clazz)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationmapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.clazz - the class to decode each resulting document into.Multi containing the result of the map-reduce operationio.smallrye.mutiny.Multi<T> mapReduce(String mapFunction, String reduceFunction, MapReduceOptions options)
mapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.options - The map reduce options configuring process and result.Multi containing the result of the map-reduce operation<D> io.smallrye.mutiny.Multi<D> mapReduce(String mapFunction, String reduceFunction, Class<D> clazz, MapReduceOptions options)
D - the target document type of the iterable.mapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.clazz - the class to decode each resulting document into.options - The map reduce options configuring process and result.Multi containing the result of the map-reduce operationio.smallrye.mutiny.Multi<T> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, MapReduceOptions options)
clientSession - the client session with which to associate this operationmapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.options - The map reduce options configuring process and result.Multi containing the result of the map-reduce operation<D> io.smallrye.mutiny.Multi<D> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<D> clazz,
MapReduceOptions options)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationmapFunction - A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.reduceFunction - A JavaScript function that "reduces" to a single object all the values associated with a particular
key.clazz - the class to decode each resulting document into.options - The map reduce options configuring process and result.Multi containing the result of the map-reduce operationio.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
requests - the writes to executeUni receiving the BulkWriteResultio.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests, com.mongodb.client.model.BulkWriteOptions options)
requests - the writes to executeoptions - the options to apply to the bulk write operationUni receiving the BulkWriteResultio.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> bulkWrite(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
clientSession - the client session with which to associate this operationrequests - the writes to executeUni receiving the BulkWriteResultio.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> bulkWrite(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests,
com.mongodb.client.model.BulkWriteOptions options)
clientSession - the client session with which to associate this operationrequests - the writes to executeoptions - the options to apply to the bulk write operationUni receiving the BulkWriteResultio.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(T document)
document - the document to insertUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(T document, com.mongodb.client.model.InsertOneOptions options)
document - the document to insertoptions - the options to apply to the operationUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T document)
clientSession - the client session with which to associate this operationdocument - the document to insertUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T document,
com.mongodb.client.model.InsertOneOptions options)
clientSession - the client session with which to associate this operationdocument - the document to insertoptions - the options to apply to the operationUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(List<? extends T> documents)
documents - the documents to insertUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(List<? extends T> documents, com.mongodb.client.model.InsertManyOptions options)
documents - the documents to insertoptions - the options to apply to the operationUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends T> documents)
clientSession - the client session with which to associate this operationdocuments - the documents to insertUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends T> documents,
com.mongodb.client.model.InsertManyOptions options)
clientSession - the client session with which to associate this operationdocuments - the documents to insertoptions - the options to apply to the operationUni completed successfully when the operation completes, or propagating a
DuplicateKeyException or MongoException on failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter)
filter - the query filter to apply the the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
filter - the query filter to apply the the delete operationoptions - the options to apply to the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the delete operationoptions - the options to apply to the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter)
filter - the query filter to apply the the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
filter - the query filter to apply the the delete operationoptions - the options to apply to the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the delete operationoptions - the options to apply to the delete operationUni receiving the DeleteResult, or propagating a MongoException on
failure.io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter,
T replacement)
filter - the query filter to apply the the replace operationreplacement - the replacement documentUni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter,
T replacement,
com.mongodb.client.model.ReplaceOptions options)
filter - the query filter to apply the the replace operationreplacement - the replacement documentoptions - the options to apply to the replace operationUni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
T replacement)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the replace operationreplacement - the replacement documentUni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
T replacement,
com.mongodb.client.model.ReplaceOptions options)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the replace operationreplacement - the replacement documentoptions - the options to apply to the replace operationUni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateOne(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
filter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.Uni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateOne(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
filter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.options - the options to apply to the update operationUni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
clientSession - the client session with which to associate this operationfilter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.Uni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
clientSession - the client session with which to associate this operationfilter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.options - the options to apply to the update operationUni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateMany(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
filter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.Uni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateMany(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
filter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.options - the options to apply to the update operationUni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
clientSession - the client session with which to associate this operationfilter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.Uni receiving the UpdateResultio.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
org.bson.conversions.Bson update,
com.mongodb.client.model.UpdateOptions options)
clientSession - the client session with which to associate this operationfilter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.options - the options to apply to the update operationUni receiving the UpdateResultio.smallrye.mutiny.Uni<T> findOneAndDelete(org.bson.conversions.Bson filter)
filter - the query filter to find the document withUni completed with the document that was removed. If no documents matched the query filter,
then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndDelete(org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
filter - the query filter to find the document withoptions - the options to apply to the operationUni completed with the document that was removed. If no documents matched the query filter,
then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession - the client session with which to associate this operationfilter - the query filter to find the document withUni completed with the document that was removed. If no documents matched the query filter,
then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
clientSession - the client session with which to associate this operationfilter - the query filter to find the document withoptions - the options to apply to the operationUni completed with the document that was removed. If no documents matched the query filter,
then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement)
filter - the query filter to apply the the replace operationreplacement - the replacement documentUni completed with the document that was replaced. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.FindOneAndReplaceOptions options)
filter - the query filter to apply the the replace operationreplacement - the replacement documentoptions - the options to apply to the operationUni completed with the document that was replaced. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the replace operationreplacement - the replacement documentUni completed with the document that was replaced. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.FindOneAndReplaceOptions options)
clientSession - the client session with which to associate this operationfilter - the query filter to apply the the replace operationreplacement - the replacement documentoptions - the options to apply to the operationUni completed with the document that was replaced. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
filter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.Uni completed with the document that was updated. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.FindOneAndUpdateOptions options)
filter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.options - the options to apply to the operationUni completed with the document that was updated. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
clientSession - the client session with which to associate this operationfilter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.Uni completed with the document that was updated. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<T> findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.FindOneAndUpdateOptions options)
clientSession - the client session with which to associate this operationfilter - a document describing the query filter, which may not be null.update - a document describing the update, which may not be null. The update to apply must include only update
operators.options - the options to apply to the operationUni completed with the document that was updated. Depending on the value of the
returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the uni is completed with null.io.smallrye.mutiny.Uni<Void> drop()
Uni completed when the operation is done.io.smallrye.mutiny.Uni<Void> drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession - the client session with which to associate this operationUni completed when the operation is done.io.smallrye.mutiny.Uni<String> createIndex(org.bson.conversions.Bson key)
key - an object describing the index key(s), which may not be null.Uni receiving the created index name.io.smallrye.mutiny.Uni<String> createIndex(org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
key - an object describing the index key(s), which may not be null.options - the options for the indexUni receiving the created index name.io.smallrye.mutiny.Uni<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key)
clientSession - the client session with which to associate this operationkey - an object describing the index key(s), which may not be null.Uni receiving the created index name.io.smallrye.mutiny.Uni<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
clientSession - the client session with which to associate this operationkey - an object describing the index key(s), which may not be null.options - the options for the indexUni receiving the created index name.io.smallrye.mutiny.Uni<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes)
indexes - the list of indexesUni completed with the result when the operation is done. The redeemed list contains the
created index names.io.smallrye.mutiny.Uni<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
indexes - the list of indexescreateIndexOptions - options to use when creating indexesUni completed with the result when the operation is done. The redeemed list contains the
created index names.io.smallrye.mutiny.Uni<List<String>> createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes)
clientSession - the client session with which to associate this operationindexes - the list of indexesUni completed with the result when the operation is done. The redeemed list contains the
created index names.io.smallrye.mutiny.Uni<List<String>> createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
clientSession - the client session with which to associate this operationindexes - the list of indexescreateIndexOptions - options to use when creating indexesUni completed with the result when the operation is done. The redeemed list contains the
created index names.io.smallrye.mutiny.Multi<org.bson.Document> listIndexes()
<D> io.smallrye.mutiny.Multi<D> listIndexes(Class<D> clazz)
D - the target document type of the iterable.clazz - the class to decode each document intoio.smallrye.mutiny.Multi<org.bson.Document> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession - the client session with which to associate this operation<D> io.smallrye.mutiny.Multi<D> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
D - the target document type of the iterable.clientSession - the client session with which to associate this operationclazz - the class to decode each document intoio.smallrye.mutiny.Uni<Void> dropIndex(String indexName)
indexName - the name of the index to removeUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndex(org.bson.conversions.Bson keys)
keys - the keys of the index to removeUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndex(String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
indexName - the name of the index to removedropIndexOptions - options to use when dropping indexesUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndex(org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
keys - the keys of the index to removedropIndexOptions - options to use when dropping indexesUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName)
clientSession - the client session with which to associate this operationindexName - the name of the index to removeUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys)
clientSession - the client session with which to associate this operationkeys - the keys of the index to removeUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
clientSession - the client session with which to associate this operationindexName - the name of the index to removedropIndexOptions - options to use when dropping indexesUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
clientSession - the client session with which to associate this operationkeys - the keys of the index to removedropIndexOptions - options to use when dropping indexesUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndexes()
Uni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions)
dropIndexOptions - options to use when dropping indexesUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession - the client session with which to associate this operationUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
clientSession - the client session with which to associate this operationdropIndexOptions - options to use when dropping indexesUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace)
newCollectionNamespace - the name the collection will be renamed toUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
newCollectionNamespace - the name the collection will be renamed tooptions - the options for renaming a collectionUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace)
clientSession - the client session with which to associate this operationnewCollectionNamespace - the name the collection will be renamed toUni completed when the operation is done.io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
clientSession - the client session with which to associate this operationnewCollectionNamespace - the name the collection will be renamed tooptions - the options for renaming a collectionUni completed when the operation is done.org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
<NewTDocument> ReactiveMongoCollection<NewTDocument> withDocumentClass(Class<NewTDocument> clazz)
NewTDocument - The type that the new collection will encode documents from and decode documents toclazz - the default class to cast any documents returned from the database into.Copyright © 2020 JBoss by Red Hat. All rights reserved.