Package io.quarkus.mongodb.impl
Class ReactiveMongoCollectionImpl<T>
- java.lang.Object
-
- io.quarkus.mongodb.impl.ReactiveMongoCollectionImpl<T>
-
- All Implemented Interfaces:
ReactiveMongoCollection<T>
public class ReactiveMongoCollectionImpl<T> extends Object implements ReactiveMongoCollection<T>
-
-
Constructor Summary
Constructors Constructor Description ReactiveMongoCollectionImpl(com.mongodb.reactivestreams.client.MongoCollection<T> collection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(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<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<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<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<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(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>
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>
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.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.<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(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(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.<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.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(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(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(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>
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>
dropIndexes()
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<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<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(com.mongodb.reactivestreams.client.ClientSession clientSession)
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.<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, org.bson.conversions.Bson filter)
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, 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(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(org.bson.conversions.Bson filter)
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(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.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>
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>
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>
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>
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.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.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> tDocuments)
Inserts a batch of documents.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult>
insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends T> tDocuments, com.mongodb.client.model.InsertManyOptions options)
Inserts a batch of documents.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult>
insertMany(List<? extends T> tDocuments)
Inserts a batch of documents.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult>
insertMany(List<? extends T> tDocuments, 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 t)
Inserts the provided document.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult>
insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession, T t, com.mongodb.client.model.InsertOneOptions options)
Inserts the provided document.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult>
insertOne(T t)
Inserts the provided document.io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult>
insertOne(T t, 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.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.<D> io.smallrye.mutiny.Multi<D>
listIndexes(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.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.<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(String mapFunction, String reduceFunction)
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.<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.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<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<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>
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>
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>
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>
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.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.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(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(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(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>
ReactiveMongoCollection<NewTDocument>withDocumentClass(Class<NewTDocument> clazz)
Create a new ReactiveMongoCollection instance with a different default class to cast any documents returned from the database into..ReactiveMongoCollectionImpl<T>
withReadPreference(com.mongodb.ReadPreference readPreference)
Create a new ReactiveMongoCollection instance with a different read preference.
-
-
-
Constructor Detail
-
ReactiveMongoCollectionImpl
ReactiveMongoCollectionImpl(com.mongodb.reactivestreams.client.MongoCollection<T> collection)
-
-
Method Detail
-
getNamespace
public com.mongodb.MongoNamespace getNamespace()
Description copied from interface:ReactiveMongoCollection
Gets the namespace of this collection.- Specified by:
getNamespace
in interfaceReactiveMongoCollection<T>
- Returns:
- the namespace
-
getDocumentClass
public Class<T> getDocumentClass()
Description copied from interface:ReactiveMongoCollection
Get the class of documents stored in this collection.- Specified by:
getDocumentClass
in interfaceReactiveMongoCollection<T>
- Returns:
- the class
-
estimatedDocumentCount
public io.smallrye.mutiny.Uni<Long> estimatedDocumentCount()
Description copied from interface:ReactiveMongoCollection
Gets an estimate of the count of documents in a collection using collection metadata.- Specified by:
estimatedDocumentCount
in interfaceReactiveMongoCollection<T>
- Returns:
- a
Uni
completed with the estimated number of documents
-
estimatedDocumentCount
public io.smallrye.mutiny.Uni<Long> estimatedDocumentCount(com.mongodb.client.model.EstimatedDocumentCountOptions options)
Description copied from interface:ReactiveMongoCollection
Gets an estimate of the count of documents in a collection using collection metadata.- Specified by:
estimatedDocumentCount
in interfaceReactiveMongoCollection<T>
- Parameters:
options
- the options describing the count- Returns:
- a
Uni
completed with the estimated number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments()
Description copied from interface:ReactiveMongoCollection
Counts the number of documents in the collection.- Specified by:
countDocuments
in interfaceReactiveMongoCollection<T>
- Returns:
- a
Uni
completed with the number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Counts the number of documents in the collection according to the given options.- Specified by:
countDocuments
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter- Returns:
- a
Uni
completed with the number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments(org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
Description copied from interface:ReactiveMongoCollection
Counts the number of documents in the collection according to the given options.- Specified by:
countDocuments
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filteroptions
- the options describing the count- Returns:
- a
Uni
completed with the number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollection
Counts the number of documents in the collection according to the given options.- Specified by:
countDocuments
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operation- Returns:
- a
Uni
completed with the number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Counts the number of documents in the collection according to the given options.- Specified by:
countDocuments
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter- Returns:
- a
Uni
completed with the number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
Description copied from interface:ReactiveMongoCollection
Counts the number of documents in the collection according to the given options.- Specified by:
countDocuments
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filteroptions
- the options describing the count- Returns:
- a
Uni
completed with the number of documents
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
fieldName
- the field name*clazz
- the default class to cast any distinct items into.- Returns:
- a
Multi
emitting the sequence of distinct values
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.- Returns:
- a
Multi
emitting the sequence of distinct values
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationfieldName
- the field nameclazz
- the default class to cast any distinct items into.- Returns:
- a
Multi
emitting the sequence of distinct values
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
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.- Returns:
- a
Multi
emitting the sequence of distinct values
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, Class<D> clazz, DistinctOptions options)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
fieldName
- the field nameclazz
- the default class to cast any distinct items into.options
- the stream options- Returns:
- a
Multi
emitting the sequence of distinct values
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz, DistinctOptions options)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.options
- the stream options- Returns:
- a
Multi
emitting the sequence of distinct values
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz, DistinctOptions options)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
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 options- Returns:
- a
Multi
emitting the sequence of distinct values
-
distinct
public <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)
Description copied from interface:ReactiveMongoCollection
Gets the distinct values of the specified field name.- Specified by:
distinct
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target type of the iterable.- Parameters:
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 options- Returns:
- a
Multi
emitting the sequence of distinct values
-
find
public io.smallrye.mutiny.Multi<T> find()
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clazz
- the class to decode each document into- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public io.smallrye.mutiny.Multi<T> find(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(org.bson.conversions.Bson filter, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
filter
- the query filterclazz
- the class to decode each document into- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public io.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operation- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationclazz
- the class to decode each document into- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public io.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filterclazz
- the class to decode each document into- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public io.smallrye.mutiny.Multi<T> find(FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Parameters:
options
- the stream options- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(Class<D> clazz, FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clazz
- the class to decode each document intooptions
- the stream options- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public io.smallrye.mutiny.Multi<T> find(org.bson.conversions.Bson filter, FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(org.bson.conversions.Bson filter, Class<D> clazz, FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
filter
- the query filterclazz
- the class to decode each document intooptions
- the stream options- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public io.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationoptions
- the stream options- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz, FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream options- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public io.smallrye.mutiny.Multi<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filteroptions
- the stream options- Returns:
- the stream with the selected documents, can be empty if none matches.
-
find
public <D> io.smallrye.mutiny.Multi<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, Class<D> clazz, FindOptions options)
Description copied from interface:ReactiveMongoCollection
Finds all documents in the collection.- Specified by:
find
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filterclazz
- the class to decode each document intooptions
- the stream options- Returns:
- the stream with the selected documents, can be empty if none matches.
-
aggregate
public io.smallrye.mutiny.Multi<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Parameters:
pipeline
- the aggregate pipeline- Returns:
- a stream containing the result of the aggregation operation
-
aggregate
public <D> io.smallrye.mutiny.Multi<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
pipeline
- the aggregate pipelineclazz
- the class to decode each document into- Returns:
- a stream containing the result of the aggregation operation
-
aggregate
public io.smallrye.mutiny.Multi<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipeline- Returns:
- a stream containing the result of the aggregation operation
-
aggregate
public <D> io.smallrye.mutiny.Multi<D> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineclazz
- the class to decode each document into- Returns:
- a stream containing the result of the aggregation operation
-
aggregate
public io.smallrye.mutiny.Multi<T> aggregate(List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Parameters:
pipeline
- the aggregate pipelineoptions
- the stream options- Returns:
- a stream containing the result of the aggregation operation
-
aggregate
public <D> io.smallrye.mutiny.Multi<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz, AggregateOptions options)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
pipeline
- the aggregate pipelineclazz
- the class to decode each document intooptions
- the stream options- Returns:
- a stream containing the result of the aggregation operation
-
aggregate
public io.smallrye.mutiny.Multi<T> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineoptions
- the stream options- Returns:
- a stream containing the result of the aggregation operation
-
aggregate
public <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)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified aggregation pipeline.- Specified by:
aggregate
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineclazz
- the class to decode each document intooptions
- the stream options- Returns:
- a stream containing the result of the aggregation operation
-
watch
public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch()
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Returns:
- the stream of changes
-
watch
public <D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clazz
- the class to decode each document into- Returns:
- the stream of changes
-
watch
public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Parameters:
pipeline
- the aggregation pipeline to apply to the change stream- Returns:
- the stream of changes
-
watch
public <D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document into- Returns:
- the stream of changes
-
watch
public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operation- Returns:
- the stream of changes
-
watch
public <D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationclazz
- the class to decode each document into- Returns:
- the stream of changes
-
watch
public 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)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change stream- Returns:
- the stream of changes
-
watch
public <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)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
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 into- Returns:
- the stream of changes
-
watch
public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(ChangeStreamOptions options)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Parameters:
options
- the stream options- Returns:
- the stream of changes
-
watch
public <D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz, ChangeStreamOptions options)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clazz
- the class to decode each document intooptions
- the stream options- Returns:
- the stream of changes
-
watch
public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Parameters:
pipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream options- Returns:
- the stream of changes
-
watch
public <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)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intooptions
- the stream options- Returns:
- the stream of changes
-
watch
public io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, ChangeStreamOptions options)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationoptions
- the stream options- Returns:
- the stream of changes
-
watch
public <D> io.smallrye.mutiny.Multi<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz, ChangeStreamOptions options)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream options- Returns:
- the stream of changes
-
watch
public 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)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream options- Returns:
- the stream of changes
-
watch
public <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)
Description copied from interface:ReactiveMongoCollection
Creates a change stream for this collection.- Specified by:
watch
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
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 options- Returns:
- the stream of changes
-
mapReduce
public io.smallrye.mutiny.Multi<T> mapReduce(String mapFunction, String reduceFunction)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
mapReduce
public <D> io.smallrye.mutiny.Multi<D> mapReduce(String mapFunction, String reduceFunction, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
mapReduce
public io.smallrye.mutiny.Multi<T> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
mapReduce
public <D> io.smallrye.mutiny.Multi<D> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
mapReduce
public io.smallrye.mutiny.Multi<T> mapReduce(String mapFunction, String reduceFunction, MapReduceOptions options)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
mapReduce
public <D> io.smallrye.mutiny.Multi<D> mapReduce(String mapFunction, String reduceFunction, Class<D> clazz, MapReduceOptions options)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
mapReduce
public io.smallrye.mutiny.Multi<T> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, MapReduceOptions options)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
mapReduce
public <D> io.smallrye.mutiny.Multi<D> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, Class<D> clazz, MapReduceOptions options)
Description copied from interface:ReactiveMongoCollection
Aggregates documents according to the specified map-reduce function.- Specified by:
mapReduce
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
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.- Returns:
- a
Multi
containing the result of the map-reduce operation
-
bulkWrite
public io.smallrye.mutiny.Uni<com.mongodb.bulk.BulkWriteResult> bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
Description copied from interface:ReactiveMongoCollection
Executes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWrite
in interfaceReactiveMongoCollection<T>
- Parameters:
requests
- the writes to execute- Returns:
- a
Uni
receiving theBulkWriteResult
-
bulkWrite
public 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)
Description copied from interface:ReactiveMongoCollection
Executes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWrite
in interfaceReactiveMongoCollection<T>
- Parameters:
requests
- the writes to executeoptions
- the options to apply to the bulk write operation- Returns:
- a
Uni
receiving theBulkWriteResult
-
bulkWrite
public 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)
Description copied from interface:ReactiveMongoCollection
Executes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWrite
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationrequests
- the writes to execute- Returns:
- a
Uni
receiving theBulkWriteResult
-
bulkWrite
public 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)
Description copied from interface:ReactiveMongoCollection
Executes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWrite
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationrequests
- the writes to executeoptions
- the options to apply to the bulk write operation- Returns:
- a
Uni
receiving theBulkWriteResult
-
insertOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(T t)
Description copied from interface:ReactiveMongoCollection
Inserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOne
in interfaceReactiveMongoCollection<T>
- Parameters:
t
- the document to insert- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
insertOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(T t, com.mongodb.client.model.InsertOneOptions options)
Description copied from interface:ReactiveMongoCollection
Inserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOne
in interfaceReactiveMongoCollection<T>
- Parameters:
t
- the document to insertoptions
- the options to apply to the operation- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
insertOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession, T t)
Description copied from interface:ReactiveMongoCollection
Inserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOne
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationt
- the document to insert- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
insertOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession, T t, com.mongodb.client.model.InsertOneOptions options)
Description copied from interface:ReactiveMongoCollection
Inserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOne
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationt
- the document to insertoptions
- the options to apply to the operation- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
insertMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(List<? extends T> tDocuments)
Description copied from interface:ReactiveMongoCollection
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertMany
in interfaceReactiveMongoCollection<T>
- Parameters:
tDocuments
- the documents to insert- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
insertMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(List<? extends T> tDocuments, com.mongodb.client.model.InsertManyOptions options)
Description copied from interface:ReactiveMongoCollection
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertMany
in interfaceReactiveMongoCollection<T>
- Parameters:
tDocuments
- the documents to insertoptions
- the options to apply to the operation- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
insertMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends T> tDocuments)
Description copied from interface:ReactiveMongoCollection
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertMany
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationtDocuments
- the documents to insert- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
insertMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends T> tDocuments, com.mongodb.client.model.InsertManyOptions options)
Description copied from interface:ReactiveMongoCollection
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertMany
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationtDocuments
- the documents to insertoptions
- the options to apply to the operation- Returns:
- a
Uni
completed successfully when the operation completes, or propagating aDuplicateKeyException
orMongoException
on failure.
-
deleteOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOne
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
deleteOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
Description copied from interface:ReactiveMongoCollection
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOne
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the delete operationoptions
- the options to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
deleteOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOne
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
deleteOne
public 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)
Description copied from interface:ReactiveMongoCollection
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOne
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the delete operationoptions
- the options to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
deleteMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteMany
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
deleteMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
Description copied from interface:ReactiveMongoCollection
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteMany
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the delete operationoptions
- the options to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
deleteMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteMany
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
deleteMany
public 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)
Description copied from interface:ReactiveMongoCollection
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteMany
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the delete operationoptions
- the options to apply to the delete operation- Returns:
- a
Uni
receiving theDeleteResult
, or propagating aMongoException
on failure.
-
replaceOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter, T replacement)
Description copied from interface:ReactiveMongoCollection
Replace a document in the collection according to the specified arguments.- Specified by:
replaceOne
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the replace operationreplacement
- the replacement document- Returns:
- a
Uni
receiving theUpdateResult
-
replaceOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.ReplaceOptions options)
Description copied from interface:ReactiveMongoCollection
Replace a document in the collection according to the specified arguments.- Specified by:
replaceOne
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the replace operationreplacement
- the replacement documentoptions
- the options to apply to the replace operation- Returns:
- a
Uni
receiving theUpdateResult
-
replaceOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement)
Description copied from interface:ReactiveMongoCollection
Replace a document in the collection according to the specified arguments.- Specified by:
replaceOne
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the replace operationreplacement
- the replacement document- Returns:
- a
Uni
receiving theUpdateResult
-
replaceOne
public 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)
Description copied from interface:ReactiveMongoCollection
Replace a document in the collection according to the specified arguments.- Specified by:
replaceOne
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the replace operationreplacement
- the replacement documentoptions
- the options to apply to the replace operation- Returns:
- a
Uni
receiving theUpdateResult
-
updateOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateOne(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
Description copied from interface:ReactiveMongoCollection
Update a single document in the collection according to the specified arguments.- Specified by:
updateOne
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Uni
receiving theUpdateResult
-
updateOne
public 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)
Description copied from interface:ReactiveMongoCollection
Update a single document in the collection according to the specified arguments.- Specified by:
updateOne
in interfaceReactiveMongoCollection<T>
- Parameters:
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 operation- Returns:
- a
Uni
receiving theUpdateResult
-
updateOne
public 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)
Description copied from interface:ReactiveMongoCollection
Update a single document in the collection according to the specified arguments.- Specified by:
updateOne
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Uni
receiving theUpdateResult
-
updateOne
public 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)
Description copied from interface:ReactiveMongoCollection
Update a single document in the collection according to the specified arguments.- Specified by:
updateOne
in interfaceReactiveMongoCollection<T>
- Parameters:
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 operation- Returns:
- a
Uni
receiving theUpdateResult
-
updateMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> updateMany(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
Description copied from interface:ReactiveMongoCollection
Update all documents in the collection according to the specified arguments.- Specified by:
updateMany
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Uni
receiving theUpdateResult
-
updateMany
public 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)
Description copied from interface:ReactiveMongoCollection
Update all documents in the collection according to the specified arguments.- Specified by:
updateMany
in interfaceReactiveMongoCollection<T>
- Parameters:
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 operation- Returns:
- a
Uni
receiving theUpdateResult
-
updateMany
public 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)
Description copied from interface:ReactiveMongoCollection
Update all documents in the collection according to the specified arguments.- Specified by:
updateMany
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Uni
receiving theUpdateResult
-
updateMany
public 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)
Description copied from interface:ReactiveMongoCollection
Update all documents in the collection according to the specified arguments.- Specified by:
updateMany
in interfaceReactiveMongoCollection<T>
- Parameters:
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 operation- Returns:
- a
Uni
receiving theUpdateResult
-
findOneAndDelete
public io.smallrye.mutiny.Uni<T> findOneAndDelete(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and remove it.- Specified by:
findOneAndDelete
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to find the document with- Returns:
- a
Uni
completed with the document that was removed. If no documents matched the query filter, then the uni is completed withnull
.
-
findOneAndDelete
public io.smallrye.mutiny.Uni<T> findOneAndDelete(org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and remove it.- Specified by:
findOneAndDelete
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to find the document withoptions
- the options to apply to the operation- Returns:
- a
Uni
completed with the document that was removed. If no documents matched the query filter, then the uni is completed withnull
.
-
findOneAndDelete
public io.smallrye.mutiny.Uni<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and remove it.- Specified by:
findOneAndDelete
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to find the document with- Returns:
- a
Uni
completed with the document that was removed. If no documents matched the query filter, then the uni is completed withnull
.
-
findOneAndDelete
public io.smallrye.mutiny.Uni<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and remove it.- Specified by:
findOneAndDelete
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to find the document withoptions
- the options to apply to the operation- Returns:
- a
Uni
completed with the document that was removed. If no documents matched the query filter, then the uni is completed withnull
.
-
findOneAndReplace
public io.smallrye.mutiny.Uni<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and replace it.- Specified by:
findOneAndReplace
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the replace operationreplacement
- the replacement document- Returns:
- a
Uni
completed with the document that was replaced. Depending on the value of thereturnOriginal
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 withnull
.
-
findOneAndReplace
public io.smallrye.mutiny.Uni<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.FindOneAndReplaceOptions options)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and replace it.- Specified by:
findOneAndReplace
in interfaceReactiveMongoCollection<T>
- Parameters:
filter
- the query filter to apply to the replace operationreplacement
- the replacement documentoptions
- the options to apply to the operation- Returns:
- a
Uni
completed with the document that was replaced. Depending on the value of thereturnOriginal
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 withnull
.
-
findOneAndReplace
public io.smallrye.mutiny.Uni<T> findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and replace it.- Specified by:
findOneAndReplace
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the replace operationreplacement
- the replacement document- Returns:
- a
Uni
completed with the document that was replaced. Depending on the value of thereturnOriginal
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 withnull
.
-
findOneAndReplace
public 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)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and replace it.- Specified by:
findOneAndReplace
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply to the replace operationreplacement
- the replacement documentoptions
- the options to apply to the operation- Returns:
- a
Uni
completed with the document that was replaced. Depending on the value of thereturnOriginal
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 withnull
.
-
findOneAndUpdate
public io.smallrye.mutiny.Uni<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and update it.- Specified by:
findOneAndUpdate
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Uni
completed with the document that was updated. Depending on the value of thereturnOriginal
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 withnull
.
-
findOneAndUpdate
public io.smallrye.mutiny.Uni<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.FindOneAndUpdateOptions options)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and update it.- Specified by:
findOneAndUpdate
in interfaceReactiveMongoCollection<T>
- Parameters:
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 operation- Returns:
- a
Uni
completed with the document that was updated. Depending on the value of thereturnOriginal
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 withnull
.
-
findOneAndUpdate
public io.smallrye.mutiny.Uni<T> findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and update it.- Specified by:
findOneAndUpdate
in interfaceReactiveMongoCollection<T>
- Parameters:
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.- Returns:
- a
Uni
completed with the document that was updated. Depending on the value of thereturnOriginal
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 withnull
.
-
findOneAndUpdate
public 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)
Description copied from interface:ReactiveMongoCollection
Atomically find a document and update it.- Specified by:
findOneAndUpdate
in interfaceReactiveMongoCollection<T>
- Parameters:
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 operation- Returns:
- a
Uni
completed with the document that was updated. Depending on the value of thereturnOriginal
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 withnull
.
-
drop
public io.smallrye.mutiny.Uni<Void> drop()
Description copied from interface:ReactiveMongoCollection
Drops this collection from the database.- Specified by:
drop
in interfaceReactiveMongoCollection<T>
- Returns:
- a
Uni
completed when the operation is done.
-
drop
public io.smallrye.mutiny.Uni<Void> drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollection
Drops this collection from the database.- Specified by:
drop
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operation- Returns:
- a
Uni
completed when the operation is done.
-
createIndex
public io.smallrye.mutiny.Uni<String> createIndex(org.bson.conversions.Bson key)
Description copied from interface:ReactiveMongoCollection
Creates an index.- Specified by:
createIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
key
- an object describing the index key(s), which may not be null.- Returns:
- a
Uni
receiving the created index name.
-
createIndex
public io.smallrye.mutiny.Uni<String> createIndex(org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
Description copied from interface:ReactiveMongoCollection
Creates an index.- Specified by:
createIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
key
- an object describing the index key(s), which may not be null.options
- the options for the index- Returns:
- a
Uni
receiving the created index name.
-
createIndex
public io.smallrye.mutiny.Uni<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key)
Description copied from interface:ReactiveMongoCollection
Creates an index.- Specified by:
createIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationkey
- an object describing the index key(s), which may not be null.- Returns:
- a
Uni
receiving the created index name.
-
createIndex
public io.smallrye.mutiny.Uni<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
Description copied from interface:ReactiveMongoCollection
Creates an index.- Specified by:
createIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
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 index- Returns:
- a
Uni
receiving the created index name.
-
createIndexes
public io.smallrye.mutiny.Uni<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes)
Description copied from interface:ReactiveMongoCollection
Create multiple indexes.- Specified by:
createIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
indexes
- the list of indexes- Returns:
- a
Uni
completed with the result when the operation is done. The redeemed list contains the created index names.
-
createIndexes
public io.smallrye.mutiny.Uni<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
Description copied from interface:ReactiveMongoCollection
Create multiple indexes.- Specified by:
createIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
indexes
- the list of indexescreateIndexOptions
- options to use when creating indexes- Returns:
- a
Uni
completed with the result when the operation is done. The redeemed list contains the created index names.
-
createIndexes
public io.smallrye.mutiny.Uni<List<String>> createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes)
Description copied from interface:ReactiveMongoCollection
Create multiple indexes.- Specified by:
createIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationindexes
- the list of indexes- Returns:
- a
Uni
completed with the result when the operation is done. The redeemed list contains the created index names.
-
createIndexes
public 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)
Description copied from interface:ReactiveMongoCollection
Create multiple indexes.- Specified by:
createIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationindexes
- the list of indexescreateIndexOptions
- options to use when creating indexes- Returns:
- a
Uni
completed with the result when the operation is done. The redeemed list contains the created index names.
-
listIndexes
public io.smallrye.mutiny.Multi<org.bson.Document> listIndexes()
Description copied from interface:ReactiveMongoCollection
Get all the indexes in this collection.- Specified by:
listIndexes
in interfaceReactiveMongoCollection<T>
- Returns:
- the stream of indexes
-
listIndexes
public <D> io.smallrye.mutiny.Multi<D> listIndexes(Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Get all the indexes in this collection.- Specified by:
listIndexes
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clazz
- the class to decode each document into- Returns:
- the stream of indexes
-
listIndexes
public io.smallrye.mutiny.Multi<org.bson.Document> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollection
Get all the indexes in this collection.- Specified by:
listIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operation- Returns:
- the stream of indexes
-
listIndexes
public <D> io.smallrye.mutiny.Multi<D> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
Description copied from interface:ReactiveMongoCollection
Get all the indexes in this collection.- Specified by:
listIndexes
in interfaceReactiveMongoCollection<T>
- Type Parameters:
D
- the target document type of the iterable.- Parameters:
clientSession
- the client session with which to associate this operationclazz
- the class to decode each document into- Returns:
- the stream of indexes
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(String indexName)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
indexName
- the name of the index to remove- Returns:
- a
Uni
completed when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(org.bson.conversions.Bson keys)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
keys
- the keys of the index to remove- Returns:
- a
Uni
completed when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
indexName
- the name of the index to removedropIndexOptions
- options to use when dropping indexes- Returns:
- a
Uni
completed when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
keys
- the keys of the index to removedropIndexOptions
- options to use when dropping indexes- Returns:
- a
Uni
completed when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationindexName
- the name of the index to remove- Returns:
- a
Uni
completed when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationkeys
- the keys of the index to remove- Returns:
- a
Uni
completed when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationindexName
- the name of the index to removedropIndexOptions
- options to use when dropping indexes- Returns:
- a
Uni
completed when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Description copied from interface:ReactiveMongoCollection
Drops the index given the keys used to create it.- Specified by:
dropIndex
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationkeys
- the keys of the index to removedropIndexOptions
- options to use when dropping indexes- Returns:
- a
Uni
completed when the operation is done.
-
dropIndexes
public io.smallrye.mutiny.Uni<Void> dropIndexes()
Description copied from interface:ReactiveMongoCollection
Drop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexes
in interfaceReactiveMongoCollection<T>
- Returns:
- a
Uni
completed when the operation is done.
-
dropIndexes
public io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Description copied from interface:ReactiveMongoCollection
Drop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
dropIndexOptions
- options to use when dropping indexes- Returns:
- a
Uni
completed when the operation is done.
-
dropIndexes
public io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollection
Drop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operation- Returns:
- a
Uni
completed when the operation is done.
-
dropIndexes
public io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Description copied from interface:ReactiveMongoCollection
Drop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexes
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationdropIndexOptions
- options to use when dropping indexes- Returns:
- a
Uni
completed when the operation is done.
-
renameCollection
public io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace)
Description copied from interface:ReactiveMongoCollection
Rename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollection
in interfaceReactiveMongoCollection<T>
- Parameters:
newCollectionNamespace
- the name the collection will be renamed to- Returns:
- a
Uni
completed when the operation is done.
-
renameCollection
public io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
Description copied from interface:ReactiveMongoCollection
Rename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollection
in interfaceReactiveMongoCollection<T>
- Parameters:
newCollectionNamespace
- the name the collection will be renamed tooptions
- the options for renaming a collection- Returns:
- a
Uni
completed when the operation is done.
-
renameCollection
public io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace)
Description copied from interface:ReactiveMongoCollection
Rename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollection
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationnewCollectionNamespace
- the name the collection will be renamed to- Returns:
- a
Uni
completed when the operation is done.
-
renameCollection
public io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
Description copied from interface:ReactiveMongoCollection
Rename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollection
in interfaceReactiveMongoCollection<T>
- Parameters:
clientSession
- the client session with which to associate this operationnewCollectionNamespace
- the name the collection will be renamed tooptions
- the options for renaming a collection- Returns:
- a
Uni
completed when the operation is done.
-
getCodecRegistry
public org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
Description copied from interface:ReactiveMongoCollection
Gets the codec registry of this collection.- Specified by:
getCodecRegistry
in interfaceReactiveMongoCollection<T>
- Returns:
- the codec registry
-
withDocumentClass
public <NewTDocument> ReactiveMongoCollection<NewTDocument> withDocumentClass(Class<NewTDocument> clazz)
Description copied from interface:ReactiveMongoCollection
Create a new ReactiveMongoCollection instance with a different default class to cast any documents returned from the database into..- Specified by:
withDocumentClass
in interfaceReactiveMongoCollection<T>
- Type Parameters:
NewTDocument
- The type that the new collection will encode documents from and decode documents to- Parameters:
clazz
- the default class to cast any documents returned from the database into.- Returns:
- a new ReactiveMongoCollection instance with the different default class
-
withReadPreference
public ReactiveMongoCollectionImpl<T> withReadPreference(com.mongodb.ReadPreference readPreference)
Description copied from interface:ReactiveMongoCollection
Create a new ReactiveMongoCollection instance with a different read preference.- Specified by:
withReadPreference
in interfaceReactiveMongoCollection<T>
- Parameters:
readPreference
- the newReadPreference
for the collection- Returns:
- a new ReactiveMongoCollection instance with the different readPreference
-
-