public class ReactiveMongoCollectionImpl<T> extends Object implements ReactiveMongoCollection<T>
Constructor and Description |
---|
ReactiveMongoCollectionImpl(com.mongodb.reactivestreams.client.MongoCollection<T> collection) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline,
AggregateOptions options)
Aggregates documents according to the specified aggregation pipeline.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Aggregates documents according to the specified aggregation pipeline.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
aggregate(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz,
AggregateOptions options)
Aggregates documents according to the specified aggregation pipeline.
|
com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> |
aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
<D> com.mongodb.reactivestreams.client.AggregatePublisher<D> |
aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Aggregates documents according to the specified aggregation pipeline.
|
com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> |
aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
<D> com.mongodb.reactivestreams.client.AggregatePublisher<D> |
aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Aggregates documents according to the specified aggregation pipeline.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<com.mongodb.bulk.BulkWriteResult> |
bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
Executes a mix of inserts, updates, replaces, and deletes.
|
CompletionStage<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.
|
CompletionStage<Long> |
countDocuments()
Counts the number of documents in the collection.
|
CompletionStage<Long> |
countDocuments(org.bson.conversions.Bson filter)
Counts the number of documents in the collection according to the given options.
|
CompletionStage<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.
|
CompletionStage<Long> |
countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession)
Counts the number of documents in the collection according to the given options.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<String> |
createIndex(org.bson.conversions.Bson key)
Creates an index.
|
CompletionStage<String> |
createIndex(org.bson.conversions.Bson key,
com.mongodb.client.model.IndexOptions options)
Creates an index.
|
CompletionStage<String> |
createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson key)
Creates an index.
|
CompletionStage<String> |
createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson key,
com.mongodb.client.model.IndexOptions options)
Creates an index.
|
CompletionStage<List<String>> |
createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<com.mongodb.client.model.IndexModel> indexes)
Create multiple indexes.
|
CompletionStage<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.
|
CompletionStage<List<String>> |
createIndexes(List<com.mongodb.client.model.IndexModel> indexes)
Create multiple indexes.
|
CompletionStage<List<String>> |
createIndexes(List<com.mongodb.client.model.IndexModel> indexes,
com.mongodb.client.model.CreateIndexOptions createIndexOptions)
Create multiple indexes.
|
CompletionStage<com.mongodb.client.result.DeleteResult> |
deleteMany(org.bson.conversions.Bson filter)
Removes all documents from the collection that match the given query filter.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<com.mongodb.client.result.DeleteResult> |
deleteOne(org.bson.conversions.Bson filter)
Removes at most one document from the collection that matches the given filter.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<com.mongodb.client.result.DeleteResult> |
deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
com.mongodb.client.model.DeleteOptions options)
Removes at most one document from the collection that matches the given filter.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
distinct(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
distinct(String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
distinct(String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz,
DistinctOptions options)
Gets the distinct values of the specified field name.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
distinct(String fieldName,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
distinct(String fieldName,
Class<D> clazz,
DistinctOptions options)
Gets the distinct values of the specified field name.
|
<D> com.mongodb.reactivestreams.client.DistinctPublisher<D> |
distinctAsPublisher(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> com.mongodb.reactivestreams.client.DistinctPublisher<D> |
distinctAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
String fieldName,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> com.mongodb.reactivestreams.client.DistinctPublisher<D> |
distinctAsPublisher(String fieldName,
org.bson.conversions.Bson filter,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
<D> com.mongodb.reactivestreams.client.DistinctPublisher<D> |
distinctAsPublisher(String fieldName,
Class<D> clazz)
Gets the distinct values of the specified field name.
|
CompletionStage<Void> |
drop()
Drops this collection from the database.
|
CompletionStage<Void> |
drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
Drops this collection from the database.
|
CompletionStage<Void> |
dropIndex(org.bson.conversions.Bson keys)
Drops the index given the keys used to create it.
|
CompletionStage<Void> |
dropIndex(org.bson.conversions.Bson keys,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
CompletionStage<Void> |
dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson keys)
Drops the index given the keys used to create it.
|
CompletionStage<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.
|
CompletionStage<Void> |
dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession,
String indexName)
Drops the index given the keys used to create it.
|
CompletionStage<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.
|
CompletionStage<Void> |
dropIndex(String indexName)
Drops the index given the keys used to create it.
|
CompletionStage<Void> |
dropIndex(String indexName,
com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drops the index given the keys used to create it.
|
CompletionStage<Void> |
dropIndexes()
Drop all the indexes on this collection, except for the default on _id.
|
CompletionStage<Void> |
dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
Drop all the indexes on this collection, except for the default on _id.
|
CompletionStage<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.
|
CompletionStage<Void> |
dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions)
Drop all the indexes on this collection, except for the default on _id.
|
CompletionStage<Long> |
estimatedDocumentCount()
Gets an estimate of the count of documents in a collection using collection metadata.
|
CompletionStage<Long> |
estimatedDocumentCount(com.mongodb.client.model.EstimatedDocumentCountOptions options)
Gets an estimate of the count of documents in a collection using collection metadata.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find()
Finds all documents in the collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find(org.bson.conversions.Bson filter)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(org.bson.conversions.Bson filter,
Class<D> clazz)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(org.bson.conversions.Bson filter,
Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find(org.bson.conversions.Bson filter,
FindOptions options)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(Class<D> clazz)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession)
Finds all documents in the collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
Class<D> clazz)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
FindOptions options)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Finds all documents in the collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz,
FindOptions options)
Finds all documents in the collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find(com.mongodb.reactivestreams.client.ClientSession clientSession,
FindOptions options)
Finds all documents in the collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> |
find(FindOptions options)
Finds all documents in the collection.
|
com.mongodb.reactivestreams.client.FindPublisher<T> |
findAsPublisher()
Finds all documents in the collection.
|
com.mongodb.reactivestreams.client.FindPublisher<T> |
findAsPublisher(org.bson.conversions.Bson filter)
Finds all documents in the collection.
|
<D> com.mongodb.reactivestreams.client.FindPublisher<D> |
findAsPublisher(org.bson.conversions.Bson filter,
Class<D> clazz)
Finds all documents in the collection.
|
<D> com.mongodb.reactivestreams.client.FindPublisher<D> |
findAsPublisher(Class<D> clazz)
Finds all documents in the collection.
|
com.mongodb.reactivestreams.client.FindPublisher<T> |
findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Finds all documents in the collection.
|
com.mongodb.reactivestreams.client.FindPublisher<T> |
findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Finds all documents in the collection.
|
<D> com.mongodb.reactivestreams.client.FindPublisher<D> |
findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
Class<D> clazz)
Finds all documents in the collection.
|
<D> com.mongodb.reactivestreams.client.FindPublisher<D> |
findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Finds all documents in the collection.
|
CompletionStage<T> |
findOneAndDelete(org.bson.conversions.Bson filter)
Atomically find a document and remove it.
|
CompletionStage<T> |
findOneAndDelete(org.bson.conversions.Bson filter,
com.mongodb.client.model.FindOneAndDeleteOptions options)
Atomically find a document and remove it.
|
CompletionStage<T> |
findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter)
Atomically find a document and remove it.
|
CompletionStage<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.
|
CompletionStage<T> |
findOneAndReplace(org.bson.conversions.Bson filter,
T replacement)
Atomically find a document and replace it.
|
CompletionStage<T> |
findOneAndReplace(org.bson.conversions.Bson filter,
T replacement,
com.mongodb.client.model.FindOneAndReplaceOptions options)
Atomically find a document and replace it.
|
CompletionStage<T> |
findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession,
org.bson.conversions.Bson filter,
T replacement)
Atomically find a document and replace it.
|
CompletionStage<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.
|
CompletionStage<T> |
findOneAndUpdate(org.bson.conversions.Bson filter,
org.bson.conversions.Bson update)
Atomically find a document and update it.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
Class<T> |
getDocumentClass()
Get the class of documents stored in this collection.
|
com.mongodb.MongoNamespace |
getNamespace()
Gets the namespace of this collection.
|
CompletionStage<Void> |
insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends T> tDocuments)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends T> tDocuments,
com.mongodb.client.model.InsertManyOptions options)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertMany(List<? extends T> tDocuments)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertMany(List<? extends T> tDocuments,
com.mongodb.client.model.InsertManyOptions options)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T t)
Inserts the provided document.
|
CompletionStage<Void> |
insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T t,
com.mongodb.client.model.InsertOneOptions options)
Inserts the provided document.
|
CompletionStage<Void> |
insertOne(T t)
Inserts the provided document.
|
CompletionStage<Void> |
insertOne(T t,
com.mongodb.client.model.InsertOneOptions options)
Inserts the provided document.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listIndexes()
Get all the indexes in this collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
listIndexes(Class<D> clazz)
Get all the indexes in this collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
Get all the indexes in this collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Get all the indexes in this collection.
|
com.mongodb.reactivestreams.client.ListIndexesPublisher<org.bson.Document> |
listIndexesAsPublisher()
Get all the indexes in this collection.
|
<D> com.mongodb.reactivestreams.client.ListIndexesPublisher<D> |
listIndexesAsPublisher(Class<D> clazz)
Get all the indexes in this collection.
|
com.mongodb.reactivestreams.client.ListIndexesPublisher<org.bson.Document> |
listIndexesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Get all the indexes in this collection.
|
<D> com.mongodb.reactivestreams.client.ListIndexesPublisher<D> |
listIndexesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Get all the indexes in this collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction) |
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<D> clazz) |
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<D> clazz,
MapReduceOptions options) |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
MapReduceOptions options) |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
mapReduce(String mapFunction,
String reduceFunction) |
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
mapReduce(String mapFunction,
String reduceFunction,
Class<D> clazz) |
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> |
mapReduce(String mapFunction,
String reduceFunction,
Class<D> clazz,
MapReduceOptions options) |
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> |
mapReduce(String mapFunction,
String reduceFunction,
MapReduceOptions options) |
com.mongodb.reactivestreams.client.MapReducePublisher<org.bson.Document> |
mapReduceAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction) |
<D> com.mongodb.reactivestreams.client.MapReducePublisher<D> |
mapReduceAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
String mapFunction,
String reduceFunction,
Class<D> clazz) |
com.mongodb.reactivestreams.client.MapReducePublisher<org.bson.Document> |
mapReduceAsPublisher(String mapFunction,
String reduceFunction) |
<D> com.mongodb.reactivestreams.client.MapReducePublisher<D> |
mapReduceAsPublisher(String mapFunction,
String reduceFunction,
Class<D> clazz) |
CompletionStage<Void> |
renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession,
com.mongodb.MongoNamespace newCollectionNamespace)
Rename the collection with oldCollectionName to the newCollectionName.
|
CompletionStage<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.
|
CompletionStage<Void> |
renameCollection(com.mongodb.MongoNamespace newCollectionNamespace)
Rename the collection with oldCollectionName to the newCollectionName.
|
CompletionStage<Void> |
renameCollection(com.mongodb.MongoNamespace newCollectionNamespace,
com.mongodb.client.model.RenameCollectionOptions options)
Rename the collection with oldCollectionName to the newCollectionName.
|
CompletionStage<com.mongodb.client.result.UpdateResult> |
replaceOne(org.bson.conversions.Bson filter,
T replacement)
Replace a document in the collection according to the specified arguments.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
CompletionStage<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch()
Creates a change stream for this collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(ChangeStreamOptions options)
Creates a change stream for this collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(Class<D> clazz)
Creates a change stream for this collection.
|
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> |
watch(Class<D> clazz,
ChangeStreamOptions options)
Creates a change stream for this collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
Creates a change stream for this collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> |
watch(List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this collection.
|
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher()
Creates a change stream for this collection.
|
<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> |
watchAsPublisher(Class<D> clazz)
Creates a change stream for this collection.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
Creates a change stream for this collection.
|
<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
Class<D> clazz)
Creates a change stream for this collection.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this collection.
|
<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> |
watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Creates a change stream for this collection.
|
com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> |
watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
Creates a change stream for this collection.
|
<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> |
watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline,
Class<D> clazz)
Creates a change stream for this collection.
|
ReactiveMongoCollectionImpl(com.mongodb.reactivestreams.client.MongoCollection<T> collection)
public com.mongodb.MongoNamespace getNamespace()
ReactiveMongoCollection
getNamespace
in interface ReactiveMongoCollection<T>
public Class<T> getDocumentClass()
ReactiveMongoCollection
getDocumentClass
in interface ReactiveMongoCollection<T>
public CompletionStage<Long> estimatedDocumentCount()
ReactiveMongoCollection
estimatedDocumentCount
in interface ReactiveMongoCollection<T>
public CompletionStage<Long> estimatedDocumentCount(com.mongodb.client.model.EstimatedDocumentCountOptions options)
ReactiveMongoCollection
estimatedDocumentCount
in interface ReactiveMongoCollection<T>
options
- the options describing the countpublic CompletionStage<Long> countDocuments()
ReactiveMongoCollection
countDocuments
in interface ReactiveMongoCollection<T>
public CompletionStage<Long> countDocuments(org.bson.conversions.Bson filter)
ReactiveMongoCollection
countDocuments
in interface ReactiveMongoCollection<T>
filter
- the query filterpublic CompletionStage<Long> countDocuments(org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
ReactiveMongoCollection
countDocuments
in interface ReactiveMongoCollection<T>
filter
- the query filteroptions
- the options describing the countpublic CompletionStage<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
countDocuments
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic CompletionStage<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
ReactiveMongoCollection
countDocuments
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filterpublic CompletionStage<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
ReactiveMongoCollection
countDocuments
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filteroptions
- the options describing the countpublic <D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(String fieldName, Class<D> clazz)
ReactiveMongoCollection
distinctAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.fieldName
- the field nameclazz
- the default class to cast any distinct items into.public <D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
distinctAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.public <D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz)
ReactiveMongoCollection
distinctAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field nameclazz
- the default class to cast any distinct items into.public <D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
distinctAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, Class<D> clazz)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.fieldName
- the field name*clazz
- the default class to cast any distinct items into.public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field nameclazz
- the default class to cast any distinct items into.public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, Class<D> clazz, DistinctOptions options)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.fieldName
- the field nameclazz
- the default class to cast any distinct items into.options
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz, DistinctOptions options)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.options
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz, DistinctOptions options)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field nameclazz
- the default class to cast any distinct items into.options
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, org.bson.conversions.Bson filter, Class<D> clazz, DistinctOptions options)
ReactiveMongoCollection
distinct
in interface ReactiveMongoCollection<T>
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.options
- the stream optionspublic com.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher()
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
public <D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(Class<D> clazz)
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher(org.bson.conversions.Bson filter)
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
filter
- the query filterpublic <D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.filter
- the query filterclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic <D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filterpublic <D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
findAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationfilter
- the query filterclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find()
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(Class<D> clazz)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(org.bson.conversions.Bson filter)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
filter
- the query filterpublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.filter
- the query filterclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filterpublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, Class<D> clazz)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationfilter
- the query filterclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
options
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(Class<D> clazz, FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(org.bson.conversions.Bson filter, FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
filter
- the query filterpublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(org.bson.conversions.Bson filter, Class<D> clazz, FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.filter
- the query filterclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationoptions
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz, FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filteroptions
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, Class<D> clazz, FindOptions options)
ReactiveMongoCollection
find
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationfilter
- the query filterclazz
- the class to decode each document intooptions
- the stream optionspublic com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
aggregateAsPublisher
in interface ReactiveMongoCollection<T>
pipeline
- the aggregate pipelinepublic <D> com.mongodb.reactivestreams.client.AggregatePublisher<D> aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
ReactiveMongoCollection
aggregateAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.pipeline
- the aggregate pipelineclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
aggregateAsPublisher
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelinepublic <D> com.mongodb.reactivestreams.client.AggregatePublisher<D> aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
aggregateAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
pipeline
- the aggregate pipelinepublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.pipeline
- the aggregate pipelineclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelinepublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
pipeline
- the aggregate pipelineoptions
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz, AggregateOptions options)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.pipeline
- the aggregate pipelineclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineoptions
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz, AggregateOptions options)
ReactiveMongoCollection
aggregate
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineclazz
- the class to decode each document intooptions
- the stream optionspublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher()
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
public <D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(Class<D> clazz)
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
pipeline
- the aggregation pipeline to apply to the change streampublic <D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic <D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streampublic <D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
ReactiveMongoCollection
watchAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch()
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
pipeline
- the aggregation pipeline to apply to the change streampublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streampublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(ChangeStreamOptions options)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
options
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz, ChangeStreamOptions options)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline, ChangeStreamOptions options)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
pipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz, ChangeStreamOptions options)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, ChangeStreamOptions options)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationoptions
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz, ChangeStreamOptions options)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream optionspublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream optionspublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<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)
ReactiveMongoCollection
watch
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intooptions
- the stream optionspublic com.mongodb.reactivestreams.client.MapReducePublisher<org.bson.Document> mapReduceAsPublisher(String mapFunction, String reduceFunction)
mapReduceAsPublisher
in interface ReactiveMongoCollection<T>
public <D> com.mongodb.reactivestreams.client.MapReducePublisher<D> mapReduceAsPublisher(String mapFunction, String reduceFunction, Class<D> clazz)
mapReduceAsPublisher
in interface ReactiveMongoCollection<T>
public com.mongodb.reactivestreams.client.MapReducePublisher<org.bson.Document> mapReduceAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction)
mapReduceAsPublisher
in interface ReactiveMongoCollection<T>
public <D> com.mongodb.reactivestreams.client.MapReducePublisher<D> mapReduceAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, Class<D> clazz)
mapReduceAsPublisher
in interface ReactiveMongoCollection<T>
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> mapReduce(String mapFunction, String reduceFunction)
mapReduce
in interface ReactiveMongoCollection<T>
public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> mapReduce(String mapFunction, String reduceFunction, Class<D> clazz)
mapReduce
in interface ReactiveMongoCollection<T>
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction)
mapReduce
in interface ReactiveMongoCollection<T>
public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, Class<D> clazz)
mapReduce
in interface ReactiveMongoCollection<T>
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> mapReduce(String mapFunction, String reduceFunction, MapReduceOptions options)
mapReduce
in interface ReactiveMongoCollection<T>
public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> mapReduce(String mapFunction, String reduceFunction, Class<D> clazz, MapReduceOptions options)
mapReduce
in interface ReactiveMongoCollection<T>
public org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, MapReduceOptions options)
mapReduce
in interface ReactiveMongoCollection<T>
public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> mapReduce(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, Class<D> clazz, MapReduceOptions options)
mapReduce
in interface ReactiveMongoCollection<T>
public CompletionStage<com.mongodb.bulk.BulkWriteResult> bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
ReactiveMongoCollection
bulkWrite
in interface ReactiveMongoCollection<T>
requests
- the writes to executeBulkWriteResult
public CompletionStage<com.mongodb.bulk.BulkWriteResult> bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests, com.mongodb.client.model.BulkWriteOptions options)
ReactiveMongoCollection
bulkWrite
in interface ReactiveMongoCollection<T>
requests
- the writes to executeoptions
- the options to apply to the bulk write operationBulkWriteResult
public CompletionStage<com.mongodb.bulk.BulkWriteResult> bulkWrite(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
ReactiveMongoCollection
bulkWrite
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationrequests
- the writes to executeBulkWriteResult
public CompletionStage<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)
ReactiveMongoCollection
bulkWrite
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationrequests
- the writes to executeoptions
- the options to apply to the bulk write operationBulkWriteResult
public CompletionStage<Void> insertOne(T t)
ReactiveMongoCollection
insertOne
in interface ReactiveMongoCollection<T>
t
- the document to insertDuplicateKeyException
or MongoException
public CompletionStage<Void> insertOne(T t, com.mongodb.client.model.InsertOneOptions options)
ReactiveMongoCollection
insertOne
in interface ReactiveMongoCollection<T>
t
- the document to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
public CompletionStage<Void> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession, T t)
ReactiveMongoCollection
insertOne
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationt
- the document to insertDuplicateKeyException
or MongoException
public CompletionStage<Void> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession, T t, com.mongodb.client.model.InsertOneOptions options)
ReactiveMongoCollection
insertOne
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationt
- the document to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
public CompletionStage<Void> insertMany(List<? extends T> tDocuments)
ReactiveMongoCollection
insertMany
in interface ReactiveMongoCollection<T>
tDocuments
- the documents to insertDuplicateKeyException
or MongoException
public CompletionStage<Void> insertMany(List<? extends T> tDocuments, com.mongodb.client.model.InsertManyOptions options)
ReactiveMongoCollection
insertMany
in interface ReactiveMongoCollection<T>
tDocuments
- the documents to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
public CompletionStage<Void> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends T> tDocuments)
ReactiveMongoCollection
insertMany
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationtDocuments
- the documents to insertDuplicateKeyException
or MongoException
public CompletionStage<Void> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends T> tDocuments, com.mongodb.client.model.InsertManyOptions options)
ReactiveMongoCollection
insertMany
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationtDocuments
- the documents to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter)
ReactiveMongoCollection
deleteOne
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
ReactiveMongoCollection
deleteOne
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the delete operationoptions
- the options to apply to the delete operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
ReactiveMongoCollection
deleteOne
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
ReactiveMongoCollection
deleteOne
in interface ReactiveMongoCollection<T>
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 operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter)
ReactiveMongoCollection
deleteMany
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
ReactiveMongoCollection
deleteMany
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the delete operationoptions
- the options to apply to the delete operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
ReactiveMongoCollection
deleteMany
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
ReactiveMongoCollection
deleteMany
in interface ReactiveMongoCollection<T>
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 operationDeleteResult
or completed exceptionally with a
MongoException
public CompletionStage<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter, T replacement)
ReactiveMongoCollection
replaceOne
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the replace operationreplacement
- the replacement documentUpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.ReplaceOptions options)
ReactiveMongoCollection
replaceOne
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the replace operationreplacement
- the replacement documentoptions
- the options to apply to the replace operationUpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> replaceOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement)
ReactiveMongoCollection
replaceOne
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the replace operationreplacement
- the replacement documentUpdateResult
public CompletionStage<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)
ReactiveMongoCollection
replaceOne
in interface ReactiveMongoCollection<T>
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 operationUpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> updateOne(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
ReactiveMongoCollection
updateOne
in interface ReactiveMongoCollection<T>
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.UpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> updateOne(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.UpdateOptions options)
ReactiveMongoCollection
updateOne
in interface ReactiveMongoCollection<T>
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 operationUpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> updateOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
ReactiveMongoCollection
updateOne
in interface ReactiveMongoCollection<T>
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.UpdateResult
public CompletionStage<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)
ReactiveMongoCollection
updateOne
in interface ReactiveMongoCollection<T>
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 operationUpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> updateMany(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
ReactiveMongoCollection
updateMany
in interface ReactiveMongoCollection<T>
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.UpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> updateMany(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.UpdateOptions options)
ReactiveMongoCollection
updateMany
in interface ReactiveMongoCollection<T>
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 operationUpdateResult
public CompletionStage<com.mongodb.client.result.UpdateResult> updateMany(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
ReactiveMongoCollection
updateMany
in interface ReactiveMongoCollection<T>
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.UpdateResult
public CompletionStage<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)
ReactiveMongoCollection
updateMany
in interface ReactiveMongoCollection<T>
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 operationUpdateResult
public CompletionStage<T> findOneAndDelete(org.bson.conversions.Bson filter)
ReactiveMongoCollection
findOneAndDelete
in interface ReactiveMongoCollection<T>
filter
- the query filter to find the document withnull
.public CompletionStage<T> findOneAndDelete(org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
ReactiveMongoCollection
findOneAndDelete
in interface ReactiveMongoCollection<T>
filter
- the query filter to find the document withoptions
- the options to apply to the operationnull
.public CompletionStage<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
ReactiveMongoCollection
findOneAndDelete
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filter to find the document withnull
.public CompletionStage<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
ReactiveMongoCollection
findOneAndDelete
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filter to find the document withoptions
- the options to apply to the operationnull
.public CompletionStage<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement)
ReactiveMongoCollection
findOneAndReplace
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the replace operationreplacement
- the replacement documentreturnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.FindOneAndReplaceOptions options)
ReactiveMongoCollection
findOneAndReplace
in interface ReactiveMongoCollection<T>
filter
- the query filter to apply the the replace operationreplacement
- the replacement documentoptions
- the options to apply to the operationreturnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<T> findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement)
ReactiveMongoCollection
findOneAndReplace
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the replace operationreplacement
- the replacement documentreturnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<T> findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.FindOneAndReplaceOptions options)
ReactiveMongoCollection
findOneAndReplace
in interface ReactiveMongoCollection<T>
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 operationreturnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
ReactiveMongoCollection
findOneAndUpdate
in interface ReactiveMongoCollection<T>
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.returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.FindOneAndUpdateOptions options)
ReactiveMongoCollection
findOneAndUpdate
in interface ReactiveMongoCollection<T>
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 operationreturnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<T> findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
ReactiveMongoCollection
findOneAndUpdate
in interface ReactiveMongoCollection<T>
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.returnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<T> findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.FindOneAndUpdateOptions options)
ReactiveMongoCollection
findOneAndUpdate
in interface ReactiveMongoCollection<T>
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 operationreturnOriginal
property, this will either be the document as it was before the update or as it is after the update. If no
documents matched the
query filter, then the completion stage is completed with null
.public CompletionStage<Void> drop()
ReactiveMongoCollection
drop
in interface ReactiveMongoCollection<T>
public CompletionStage<Void> drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
drop
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic CompletionStage<String> createIndex(org.bson.conversions.Bson key)
ReactiveMongoCollection
createIndex
in interface ReactiveMongoCollection<T>
key
- an object describing the index key(s), which may not be null.public CompletionStage<String> createIndex(org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
ReactiveMongoCollection
createIndex
in interface ReactiveMongoCollection<T>
key
- an object describing the index key(s), which may not be null.options
- the options for the indexpublic CompletionStage<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key)
ReactiveMongoCollection
createIndex
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationkey
- an object describing the index key(s), which may not be null.public CompletionStage<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
ReactiveMongoCollection
createIndex
in interface ReactiveMongoCollection<T>
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 indexpublic CompletionStage<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes)
ReactiveMongoCollection
createIndexes
in interface ReactiveMongoCollection<T>
indexes
- the list of indexespublic CompletionStage<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
ReactiveMongoCollection
createIndexes
in interface ReactiveMongoCollection<T>
indexes
- the list of indexescreateIndexOptions
- options to use when creating indexespublic CompletionStage<List<String>> createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes)
ReactiveMongoCollection
createIndexes
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationindexes
- the list of indexespublic CompletionStage<List<String>> createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
ReactiveMongoCollection
createIndexes
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationindexes
- the list of indexescreateIndexOptions
- options to use when creating indexespublic com.mongodb.reactivestreams.client.ListIndexesPublisher<org.bson.Document> listIndexesAsPublisher()
ReactiveMongoCollection
listIndexesAsPublisher
in interface ReactiveMongoCollection<T>
public <D> com.mongodb.reactivestreams.client.ListIndexesPublisher<D> listIndexesAsPublisher(Class<D> clazz)
ReactiveMongoCollection
listIndexesAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intopublic com.mongodb.reactivestreams.client.ListIndexesPublisher<org.bson.Document> listIndexesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
listIndexesAsPublisher
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic <D> com.mongodb.reactivestreams.client.ListIndexesPublisher<D> listIndexesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
ReactiveMongoCollection
listIndexesAsPublisher
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listIndexes()
ReactiveMongoCollection
listIndexes
in interface ReactiveMongoCollection<T>
public <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> listIndexes(Class<D> clazz)
ReactiveMongoCollection
listIndexes
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clazz
- the class to decode each document intopublic org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
listIndexes
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic <D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
ReactiveMongoCollection
listIndexes
in interface ReactiveMongoCollection<T>
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intopublic CompletionStage<Void> dropIndex(String indexName)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
indexName
- the name of the index to removepublic CompletionStage<Void> dropIndex(org.bson.conversions.Bson keys)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
keys
- the keys of the index to removepublic CompletionStage<Void> dropIndex(String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
indexName
- the name of the index to removedropIndexOptions
- options to use when dropping indexespublic CompletionStage<Void> dropIndex(org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
keys
- the keys of the index to removedropIndexOptions
- options to use when dropping indexespublic CompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationindexName
- the name of the index to removepublic CompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationkeys
- the keys of the index to removepublic CompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationindexName
- the name of the index to removedropIndexOptions
- options to use when dropping indexespublic CompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
ReactiveMongoCollection
dropIndex
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationkeys
- the keys of the index to removedropIndexOptions
- options to use when dropping indexespublic CompletionStage<Void> dropIndexes()
ReactiveMongoCollection
dropIndexes
in interface ReactiveMongoCollection<T>
public CompletionStage<Void> dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions)
ReactiveMongoCollection
dropIndexes
in interface ReactiveMongoCollection<T>
dropIndexOptions
- options to use when dropping indexespublic CompletionStage<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
ReactiveMongoCollection
dropIndexes
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationpublic CompletionStage<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
ReactiveMongoCollection
dropIndexes
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationdropIndexOptions
- options to use when dropping indexespublic CompletionStage<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace)
ReactiveMongoCollection
renameCollection
in interface ReactiveMongoCollection<T>
newCollectionNamespace
- the name the collection will be renamed topublic CompletionStage<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
ReactiveMongoCollection
renameCollection
in interface ReactiveMongoCollection<T>
newCollectionNamespace
- the name the collection will be renamed tooptions
- the options for renaming a collectionpublic CompletionStage<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace)
ReactiveMongoCollection
renameCollection
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationnewCollectionNamespace
- the name the collection will be renamed topublic CompletionStage<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
ReactiveMongoCollection
renameCollection
in interface ReactiveMongoCollection<T>
clientSession
- the client session with which to associate this operationnewCollectionNamespace
- the name the collection will be renamed tooptions
- the options for renaming a collectionCopyright © 2019 JBoss by Red Hat. All rights reserved.