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.CodecRegistrygetCodecRegistry()Gets the codec registry of this collection.Class<T>getDocumentClass()Get the class of documents stored in this collection.com.mongodb.MongoNamespacegetNamespace()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:ReactiveMongoCollectionGets the namespace of this collection.- Specified by:
getNamespacein interfaceReactiveMongoCollection<T>- Returns:
- the namespace
-
getDocumentClass
public Class<T> getDocumentClass()
Description copied from interface:ReactiveMongoCollectionGet the class of documents stored in this collection.- Specified by:
getDocumentClassin interfaceReactiveMongoCollection<T>- Returns:
- the class
-
estimatedDocumentCount
public io.smallrye.mutiny.Uni<Long> estimatedDocumentCount()
Description copied from interface:ReactiveMongoCollectionGets an estimate of the count of documents in a collection using collection metadata.- Specified by:
estimatedDocumentCountin interfaceReactiveMongoCollection<T>- Returns:
- a
Unicompleted with the estimated number of documents
-
estimatedDocumentCount
public io.smallrye.mutiny.Uni<Long> estimatedDocumentCount(com.mongodb.client.model.EstimatedDocumentCountOptions options)
Description copied from interface:ReactiveMongoCollectionGets an estimate of the count of documents in a collection using collection metadata.- Specified by:
estimatedDocumentCountin interfaceReactiveMongoCollection<T>- Parameters:
options- the options describing the count- Returns:
- a
Unicompleted with the estimated number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments()
Description copied from interface:ReactiveMongoCollectionCounts the number of documents in the collection.- Specified by:
countDocumentsin interfaceReactiveMongoCollection<T>- Returns:
- a
Unicompleted with the number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollectionCounts the number of documents in the collection according to the given options.- Specified by:
countDocumentsin interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionCounts the number of documents in the collection according to the given options.- Specified by:
countDocumentsin interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filteroptions- the options describing the count- Returns:
- a
Unicompleted with the number of documents
-
countDocuments
public io.smallrye.mutiny.Uni<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollectionCounts the number of documents in the collection according to the given options.- Specified by:
countDocumentsin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operation- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionCounts the number of documents in the collection according to the given options.- Specified by:
countDocumentsin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionCounts the number of documents in the collection according to the given options.- Specified by:
countDocumentsin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filteroptions- the options describing the count- Returns:
- a
Unicompleted with the number of documents
-
distinct
public <D> io.smallrye.mutiny.Multi<D> distinct(String fieldName, Class<D> clazz)
Description copied from interface:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting 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:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting 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:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting 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:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting 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:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting 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:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting 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:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting 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:ReactiveMongoCollectionGets the distinct values of the specified field name.- Specified by:
distinctin 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
Multiemitting the sequence of distinct values
-
find
public io.smallrye.mutiny.Multi<T> find()
Description copied from interface:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionFinds all documents in the collection.- Specified by:
findin 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionAggregates documents according to the specified aggregation pipeline.- Specified by:
aggregatein 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionCreates a change stream for this collection.- Specified by:
watchin 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionAggregates documents according to the specified map-reduce function.- Specified by:
mapReducein 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
Multicontaining 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:ReactiveMongoCollectionExecutes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWritein interfaceReactiveMongoCollection<T>- Parameters:
requests- the writes to execute- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionExecutes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWritein interfaceReactiveMongoCollection<T>- Parameters:
requests- the writes to executeoptions- the options to apply to the bulk write operation- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionExecutes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWritein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationrequests- the writes to execute- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionExecutes a mix of inserts, updates, replaces, and deletes.- Specified by:
bulkWritein 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
Unireceiving theBulkWriteResult
-
insertOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertOneResult> insertOne(T t)
Description copied from interface:ReactiveMongoCollectionInserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOnein interfaceReactiveMongoCollection<T>- Parameters:
t- the document to insert- Returns:
- a
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon 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:ReactiveMongoCollectionInserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOnein interfaceReactiveMongoCollection<T>- Parameters:
t- the document to insertoptions- the options to apply to the operation- Returns:
- a
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon 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:ReactiveMongoCollectionInserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOnein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationt- the document to insert- Returns:
- a
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon 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:ReactiveMongoCollectionInserts the provided document. If the document is missing an identifier, the driver should generate one.- Specified by:
insertOnein 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
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon failure.
-
insertMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.InsertManyResult> insertMany(List<? extends T> tDocuments)
Description copied from interface:ReactiveMongoCollectionInserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertManyin interfaceReactiveMongoCollection<T>- Parameters:
tDocuments- the documents to insert- Returns:
- a
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon 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:ReactiveMongoCollectionInserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertManyin interfaceReactiveMongoCollection<T>- Parameters:
tDocuments- the documents to insertoptions- the options to apply to the operation- Returns:
- a
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon 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:ReactiveMongoCollectionInserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertManyin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationtDocuments- the documents to insert- Returns:
- a
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon 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:ReactiveMongoCollectionInserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API.- Specified by:
insertManyin 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
Unicompleted successfully when the operation completes, or propagating aDuplicateKeyExceptionorMongoExceptionon failure.
-
deleteOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollectionRemoves at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOnein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon 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:ReactiveMongoCollectionRemoves at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOnein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the delete operationoptions- the options to apply to the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon 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:ReactiveMongoCollectionRemoves at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOnein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon 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:ReactiveMongoCollectionRemoves at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.- Specified by:
deleteOnein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the delete operationoptions- the options to apply to the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon failure.
-
deleteMany
public io.smallrye.mutiny.Uni<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollectionRemoves all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteManyin interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon 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:ReactiveMongoCollectionRemoves all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteManyin interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the delete operationoptions- the options to apply to the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon 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:ReactiveMongoCollectionRemoves all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteManyin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon 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:ReactiveMongoCollectionRemoves all documents from the collection that match the given query filter. If no documents match, the collection is not modified.- Specified by:
deleteManyin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the delete operationoptions- the options to apply to the delete operation- Returns:
- a
Unireceiving theDeleteResult, or propagating aMongoExceptionon failure.
-
replaceOne
public io.smallrye.mutiny.Uni<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter, T replacement)Description copied from interface:ReactiveMongoCollectionReplace a document in the collection according to the specified arguments.- Specified by:
replaceOnein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the replace operationreplacement- the replacement document- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionReplace a document in the collection according to the specified arguments.- Specified by:
replaceOnein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the replace operationreplacement- the replacement documentoptions- the options to apply to the replace operation- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionReplace a document in the collection according to the specified arguments.- Specified by:
replaceOnein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the replace operationreplacement- the replacement document- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionReplace a document in the collection according to the specified arguments.- Specified by:
replaceOnein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the replace operationreplacement- the replacement documentoptions- the options to apply to the replace operation- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionUpdate a single document in the collection according to the specified arguments.- Specified by:
updateOnein 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
Unireceiving 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:ReactiveMongoCollectionUpdate a single document in the collection according to the specified arguments.- Specified by:
updateOnein 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
Unireceiving 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:ReactiveMongoCollectionUpdate a single document in the collection according to the specified arguments.- Specified by:
updateOnein 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
Unireceiving 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:ReactiveMongoCollectionUpdate a single document in the collection according to the specified arguments.- Specified by:
updateOnein 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
Unireceiving 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:ReactiveMongoCollectionUpdate all documents in the collection according to the specified arguments.- Specified by:
updateManyin 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
Unireceiving 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:ReactiveMongoCollectionUpdate all documents in the collection according to the specified arguments.- Specified by:
updateManyin 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
Unireceiving 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:ReactiveMongoCollectionUpdate all documents in the collection according to the specified arguments.- Specified by:
updateManyin 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
Unireceiving 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:ReactiveMongoCollectionUpdate all documents in the collection according to the specified arguments.- Specified by:
updateManyin 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
Unireceiving theUpdateResult
-
findOneAndDelete
public io.smallrye.mutiny.Uni<T> findOneAndDelete(org.bson.conversions.Bson filter)
Description copied from interface:ReactiveMongoCollectionAtomically find a document and remove it.- Specified by:
findOneAndDeletein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to find the document with- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionAtomically find a document and remove it.- Specified by:
findOneAndDeletein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to find the document withoptions- the options to apply to the operation- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionAtomically find a document and remove it.- Specified by:
findOneAndDeletein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to find the document with- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionAtomically find a document and remove it.- Specified by:
findOneAndDeletein 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
Unicompleted 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:ReactiveMongoCollectionAtomically find a document and replace it.- Specified by:
findOneAndReplacein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the replace operationreplacement- the replacement document- Returns:
- a
Unicompleted with the document that was replaced. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionAtomically find a document and replace it.- Specified by:
findOneAndReplacein interfaceReactiveMongoCollection<T>- Parameters:
filter- the query filter to apply the the replace operationreplacement- the replacement documentoptions- the options to apply to the operation- Returns:
- a
Unicompleted with the document that was replaced. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionAtomically find a document and replace it.- Specified by:
findOneAndReplacein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the replace operationreplacement- the replacement document- Returns:
- a
Unicompleted with the document that was replaced. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionAtomically find a document and replace it.- Specified by:
findOneAndReplacein interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationfilter- the query filter to apply the the replace operationreplacement- the replacement documentoptions- the options to apply to the operation- Returns:
- a
Unicompleted with the document that was replaced. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionAtomically find a document and update it.- Specified by:
findOneAndUpdatein 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
Unicompleted with the document that was updated. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionAtomically find a document and update it.- Specified by:
findOneAndUpdatein 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
Unicompleted with the document that was updated. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionAtomically find a document and update it.- Specified by:
findOneAndUpdatein 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
Unicompleted with the document that was updated. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionAtomically find a document and update it.- Specified by:
findOneAndUpdatein 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
Unicompleted with the document that was updated. Depending on the value of thereturnOriginalproperty, 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:ReactiveMongoCollectionDrops this collection from the database.- Specified by:
dropin interfaceReactiveMongoCollection<T>- Returns:
- a
Unicompleted when the operation is done.
-
drop
public io.smallrye.mutiny.Uni<Void> drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollectionDrops this collection from the database.- Specified by:
dropin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operation- Returns:
- a
Unicompleted when the operation is done.
-
createIndex
public io.smallrye.mutiny.Uni<String> createIndex(org.bson.conversions.Bson key)
Description copied from interface:ReactiveMongoCollectionCreates an index.- Specified by:
createIndexin interfaceReactiveMongoCollection<T>- Parameters:
key- an object describing the index key(s), which may not be null.- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionCreates an index.- Specified by:
createIndexin interfaceReactiveMongoCollection<T>- Parameters:
key- an object describing the index key(s), which may not be null.options- the options for the index- Returns:
- a
Unireceiving 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:ReactiveMongoCollectionCreates an index.- Specified by:
createIndexin 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
Unireceiving 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:ReactiveMongoCollectionCreates an index.- Specified by:
createIndexin 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
Unireceiving the created index name.
-
createIndexes
public io.smallrye.mutiny.Uni<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes)
Description copied from interface:ReactiveMongoCollectionCreate multiple indexes.- Specified by:
createIndexesin interfaceReactiveMongoCollection<T>- Parameters:
indexes- the list of indexes- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionCreate multiple indexes.- Specified by:
createIndexesin interfaceReactiveMongoCollection<T>- Parameters:
indexes- the list of indexescreateIndexOptions- options to use when creating indexes- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionCreate multiple indexes.- Specified by:
createIndexesin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationindexes- the list of indexes- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionCreate multiple indexes.- Specified by:
createIndexesin 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
Unicompleted 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:ReactiveMongoCollectionGet all the indexes in this collection.- Specified by:
listIndexesin interfaceReactiveMongoCollection<T>- Returns:
- the stream of indexes
-
listIndexes
public <D> io.smallrye.mutiny.Multi<D> listIndexes(Class<D> clazz)
Description copied from interface:ReactiveMongoCollectionGet all the indexes in this collection.- Specified by:
listIndexesin 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:ReactiveMongoCollectionGet all the indexes in this collection.- Specified by:
listIndexesin 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:ReactiveMongoCollectionGet all the indexes in this collection.- Specified by:
listIndexesin 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:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin interfaceReactiveMongoCollection<T>- Parameters:
indexName- the name of the index to remove- Returns:
- a
Unicompleted when the operation is done.
-
dropIndex
public io.smallrye.mutiny.Uni<Void> dropIndex(org.bson.conversions.Bson keys)
Description copied from interface:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin interfaceReactiveMongoCollection<T>- Parameters:
keys- the keys of the index to remove- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin interfaceReactiveMongoCollection<T>- Parameters:
indexName- the name of the index to removedropIndexOptions- options to use when dropping indexes- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin interfaceReactiveMongoCollection<T>- Parameters:
keys- the keys of the index to removedropIndexOptions- options to use when dropping indexes- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationindexName- the name of the index to remove- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationkeys- the keys of the index to remove- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin 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
Unicompleted 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:ReactiveMongoCollectionDrops the index given the keys used to create it.- Specified by:
dropIndexin 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
Unicompleted when the operation is done.
-
dropIndexes
public io.smallrye.mutiny.Uni<Void> dropIndexes()
Description copied from interface:ReactiveMongoCollectionDrop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexesin interfaceReactiveMongoCollection<T>- Returns:
- a
Unicompleted when the operation is done.
-
dropIndexes
public io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Description copied from interface:ReactiveMongoCollectionDrop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexesin interfaceReactiveMongoCollection<T>- Parameters:
dropIndexOptions- options to use when dropping indexes- Returns:
- a
Unicompleted when the operation is done.
-
dropIndexes
public io.smallrye.mutiny.Uni<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
Description copied from interface:ReactiveMongoCollectionDrop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexesin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operation- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionDrop all the indexes on this collection, except for the default on _id.- Specified by:
dropIndexesin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationdropIndexOptions- options to use when dropping indexes- Returns:
- a
Unicompleted when the operation is done.
-
renameCollection
public io.smallrye.mutiny.Uni<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace)
Description copied from interface:ReactiveMongoCollectionRename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollectionin interfaceReactiveMongoCollection<T>- Parameters:
newCollectionNamespace- the name the collection will be renamed to- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionRename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollectionin interfaceReactiveMongoCollection<T>- Parameters:
newCollectionNamespace- the name the collection will be renamed tooptions- the options for renaming a collection- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionRename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollectionin interfaceReactiveMongoCollection<T>- Parameters:
clientSession- the client session with which to associate this operationnewCollectionNamespace- the name the collection will be renamed to- Returns:
- a
Unicompleted 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:ReactiveMongoCollectionRename the collection with oldCollectionName to the newCollectionName.- Specified by:
renameCollectionin 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
Unicompleted when the operation is done.
-
getCodecRegistry
public org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
Description copied from interface:ReactiveMongoCollectionGets the codec registry of this collection.- Specified by:
getCodecRegistryin interfaceReactiveMongoCollection<T>- Returns:
- the codec registry
-
withDocumentClass
public <NewTDocument> ReactiveMongoCollection<NewTDocument> withDocumentClass(Class<NewTDocument> clazz)
Description copied from interface:ReactiveMongoCollectionCreate a new ReactiveMongoCollection instance with a different default class to cast any documents returned from the database into..- Specified by:
withDocumentClassin 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:ReactiveMongoCollectionCreate a new ReactiveMongoCollection instance with a different read preference.- Specified by:
withReadPreferencein interfaceReactiveMongoCollection<T>- Parameters:
readPreference- the newReadPreferencefor the collection- Returns:
- a new ReactiveMongoCollection instance with the different readPreference
-
-