T
- The type that this collection will encode documents from and decode documents to.public interface ReactiveMongoCollection<T>
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> documents)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession,
List<? extends T> documents,
com.mongodb.client.model.InsertManyOptions options)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertMany(List<? extends T> documents)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertMany(List<? extends T> documents,
com.mongodb.client.model.InsertManyOptions options)
Inserts a batch of documents.
|
CompletionStage<Void> |
insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T document)
Inserts the provided document.
|
CompletionStage<Void> |
insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession,
T document,
com.mongodb.client.model.InsertOneOptions options)
Inserts the provided document.
|
CompletionStage<Void> |
insertOne(T document)
Inserts the provided document.
|
CompletionStage<Void> |
insertOne(T document,
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.
|
com.mongodb.MongoNamespace getNamespace()
Class<T> getDocumentClass()
CompletionStage<Long> estimatedDocumentCount()
CompletionStage<Long> estimatedDocumentCount(com.mongodb.client.model.EstimatedDocumentCountOptions options)
options
- the options describing the countCompletionStage<Long> countDocuments()
CompletionStage<Long> countDocuments(org.bson.conversions.Bson filter)
filter
- the query filterCompletionStage<Long> countDocuments(org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
filter
- the query filteroptions
- the options describing the countCompletionStage<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operationCompletionStage<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession
- the client session with which to associate this operationfilter
- the query filterCompletionStage<Long> countDocuments(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.CountOptions options)
clientSession
- the client session with which to associate this operationfilter
- the query filteroptions
- the options describing the count<D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(String fieldName, Class<D> clazz)
D
- the target type of the iterable.fieldName
- the field nameclazz
- the default class to cast any distinct items into.<D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
D
- the target type of the iterable.fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.<D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz)
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field nameclazz
- the default class to cast any distinct items into.<D> com.mongodb.reactivestreams.client.DistinctPublisher<D> distinctAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, Class<D> clazz)
D
- the target type of the iterable.fieldName
- the field name*clazz
- the default class to cast any distinct items into.<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz)
D
- the target type of the iterable.fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz)
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field nameclazz
- the default class to cast any distinct items into.<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)
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.<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, Class<D> clazz, DistinctOptions options)
D
- the target type of the iterable.fieldName
- the field nameclazz
- the default class to cast any distinct items into.options
- the stream options<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(String fieldName, org.bson.conversions.Bson filter, Class<D> clazz, DistinctOptions options)
D
- the target type of the iterable.fieldName
- the field namefilter
- the query filterclazz
- the default class to cast any distinct items into.options
- the stream options<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> distinct(com.mongodb.reactivestreams.client.ClientSession clientSession, String fieldName, Class<D> clazz, DistinctOptions options)
D
- the target type of the iterable.clientSession
- the client session with which to associate this operationfieldName
- the field nameclazz
- the default class to cast any distinct items into.options
- the stream options<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)
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 optionscom.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher()
<D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(Class<D> clazz)
D
- the target document type of the iterable.clazz
- the class to decode each document intocom.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher(org.bson.conversions.Bson filter)
filter
- the query filter<D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(org.bson.conversions.Bson filter, Class<D> clazz)
D
- the target document type of the iterable.filter
- the query filterclazz
- the class to decode each document intocom.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operation<D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intocom.mongodb.reactivestreams.client.FindPublisher<T> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession
- the client session with which to associate this operationfilter
- the query filter<D> com.mongodb.reactivestreams.client.FindPublisher<D> findAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationfilter
- the query filterclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find()
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(Class<D> clazz)
D
- the target document type of the iterable.clazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(org.bson.conversions.Bson filter)
filter
- the query filter<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(org.bson.conversions.Bson filter, Class<D> clazz)
D
- the target document type of the iterable.filter
- the query filterclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operation<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession
- the client session with which to associate this operationfilter
- the query filter<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationfilter
- the query filterclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(FindOptions options)
options
- the stream options<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(Class<D> clazz, FindOptions options)
D
- the target document type of the iterable.clazz
- the class to decode each document intooptions
- the stream optionsorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(org.bson.conversions.Bson filter, FindOptions options)
filter
- the query filter<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(org.bson.conversions.Bson filter, Class<D> clazz, FindOptions options)
D
- the target document type of the iterable.filter
- the query filterclazz
- the class to decode each document intooptions
- the stream optionsorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, FindOptions options)
clientSession
- the client session with which to associate this operationoptions
- the stream options<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> find(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz, FindOptions options)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intooptions
- the stream optionsorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<T> find(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, FindOptions options)
clientSession
- the client session with which to associate this operationfilter
- the query filteroptions
- the stream options<D> 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)
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 optionscom.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
pipeline
- the aggregate pipeline<D> com.mongodb.reactivestreams.client.AggregatePublisher<D> aggregateAsPublisher(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
D
- the target document type of the iterable.pipeline
- the aggregate pipelineclazz
- the class to decode each document intocom.mongodb.reactivestreams.client.AggregatePublisher<org.bson.Document> aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipeline<D> com.mongodb.reactivestreams.client.AggregatePublisher<D> aggregateAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline)
pipeline
- the aggregate pipeline<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
D
- the target document type of the iterable.pipeline
- the aggregate pipelineclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipeline<D> 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)
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 intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> aggregate(List<? extends org.bson.conversions.Bson> pipeline, AggregateOptions options)
pipeline
- the aggregate pipelineoptions
- the stream options<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> aggregate(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz, AggregateOptions options)
D
- the target document type of the iterable.pipeline
- the aggregate pipelineclazz
- the class to decode each document intooptions
- the stream optionsorg.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)
clientSession
- the client session with which to associate this operationpipeline
- the aggregate pipelineoptions
- the stream options<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)
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 optionscom.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher()
<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(Class<D> clazz)
D
- the target document type of the iterable.clazz
- the class to decode each document intocom.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline)
pipeline
- the aggregation pipeline to apply to the change stream<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
D
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intocom.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operation<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intocom.mongodb.reactivestreams.client.ChangeStreamPublisher<org.bson.Document> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline)
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change stream<D> com.mongodb.reactivestreams.client.ChangeStreamPublisher<D> watchAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends org.bson.conversions.Bson> pipeline, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch()
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz)
D
- the target document type of the iterable.clazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(List<? extends org.bson.conversions.Bson> pipeline)
pipeline
- the aggregation pipeline to apply to the change stream<D> 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)
D
- the target document type of the iterable.pipeline
- the aggregation pipeline to apply to the change streamclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operation<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intoorg.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)
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change stream<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)
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 intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(ChangeStreamOptions options)
options
- the stream options<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<D>> watch(Class<D> clazz, ChangeStreamOptions options)
D
- the target document type of the iterable.clazz
- the class to decode each document intooptions
- the stream optionsorg.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)
pipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream options<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)
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 optionsorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<com.mongodb.client.model.changestream.ChangeStreamDocument<org.bson.Document>> watch(com.mongodb.reactivestreams.client.ClientSession clientSession, ChangeStreamOptions options)
clientSession
- the client session with which to associate this operationoptions
- the stream options<D> 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)
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 optionsorg.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)
clientSession
- the client session with which to associate this operationpipeline
- the aggregation pipeline to apply to the change streamoptions
- the stream options<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)
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 optionscom.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)
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)
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)
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)
org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> mapReduce(String mapFunction, String reduceFunction, MapReduceOptions options)
<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(com.mongodb.reactivestreams.client.ClientSession clientSession, String mapFunction, String reduceFunction, MapReduceOptions options)
<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)
CompletionStage<com.mongodb.bulk.BulkWriteResult> bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
requests
- the writes to executeBulkWriteResult
CompletionStage<com.mongodb.bulk.BulkWriteResult> bulkWrite(List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests, com.mongodb.client.model.BulkWriteOptions options)
requests
- the writes to executeoptions
- the options to apply to the bulk write operationBulkWriteResult
CompletionStage<com.mongodb.bulk.BulkWriteResult> bulkWrite(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends com.mongodb.client.model.WriteModel<? extends T>> requests)
clientSession
- the client session with which to associate this operationrequests
- the writes to executeBulkWriteResult
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)
clientSession
- the client session with which to associate this operationrequests
- the writes to executeoptions
- the options to apply to the bulk write operationBulkWriteResult
CompletionStage<Void> insertOne(T document)
document
- the document to insertDuplicateKeyException
or MongoException
CompletionStage<Void> insertOne(T document, com.mongodb.client.model.InsertOneOptions options)
document
- the document to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
CompletionStage<Void> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession, T document)
clientSession
- the client session with which to associate this operationdocument
- the document to insertDuplicateKeyException
or MongoException
CompletionStage<Void> insertOne(com.mongodb.reactivestreams.client.ClientSession clientSession, T document, com.mongodb.client.model.InsertOneOptions options)
clientSession
- the client session with which to associate this operationdocument
- the document to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
CompletionStage<Void> insertMany(List<? extends T> documents)
documents
- the documents to insertDuplicateKeyException
or MongoException
CompletionStage<Void> insertMany(List<? extends T> documents, com.mongodb.client.model.InsertManyOptions options)
documents
- the documents to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
CompletionStage<Void> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends T> documents)
clientSession
- the client session with which to associate this operationdocuments
- the documents to insertDuplicateKeyException
or MongoException
CompletionStage<Void> insertMany(com.mongodb.reactivestreams.client.ClientSession clientSession, List<? extends T> documents, com.mongodb.client.model.InsertManyOptions options)
clientSession
- the client session with which to associate this operationdocuments
- the documents to insertoptions
- the options to apply to the operationDuplicateKeyException
or MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter)
filter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
filter
- the query filter to apply the the delete operationoptions
- the options to apply to the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the delete operationoptions
- the options to apply to the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter)
filter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
filter
- the query filter to apply the the delete operationoptions
- the options to apply to the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.DeleteResult> deleteMany(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.DeleteOptions options)
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the delete operationoptions
- the options to apply to the delete operationDeleteResult
or completed exceptionally with a
MongoException
CompletionStage<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter, T replacement)
filter
- the query filter to apply the the replace operationreplacement
- the replacement documentUpdateResult
CompletionStage<com.mongodb.client.result.UpdateResult> replaceOne(org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.ReplaceOptions options)
filter
- the query filter to apply the the replace operationreplacement
- the replacement documentoptions
- the options to apply to the replace operationUpdateResult
CompletionStage<com.mongodb.client.result.UpdateResult> replaceOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement)
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the replace operationreplacement
- the replacement documentUpdateResult
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)
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
CompletionStage<com.mongodb.client.result.UpdateResult> updateOne(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
filter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.UpdateResult
CompletionStage<com.mongodb.client.result.UpdateResult> updateOne(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.UpdateOptions options)
filter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.options
- the options to apply to the update operationUpdateResult
CompletionStage<com.mongodb.client.result.UpdateResult> updateOne(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
clientSession
- the client session with which to associate this operationfilter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.UpdateResult
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)
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
CompletionStage<com.mongodb.client.result.UpdateResult> updateMany(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
filter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.UpdateResult
CompletionStage<com.mongodb.client.result.UpdateResult> updateMany(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.UpdateOptions options)
filter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.options
- the options to apply to the update operationUpdateResult
CompletionStage<com.mongodb.client.result.UpdateResult> updateMany(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
clientSession
- the client session with which to associate this operationfilter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.UpdateResult
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)
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
CompletionStage<T> findOneAndDelete(org.bson.conversions.Bson filter)
filter
- the query filter to find the document withnull
.CompletionStage<T> findOneAndDelete(org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
filter
- the query filter to find the document withoptions
- the options to apply to the operationnull
.CompletionStage<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter)
clientSession
- the client session with which to associate this operationfilter
- the query filter to find the document withnull
.CompletionStage<T> findOneAndDelete(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, com.mongodb.client.model.FindOneAndDeleteOptions options)
clientSession
- the client session with which to associate this operationfilter
- the query filter to find the document withoptions
- the options to apply to the operationnull
.CompletionStage<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement)
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
.CompletionStage<T> findOneAndReplace(org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.FindOneAndReplaceOptions options)
filter
- the query filter to apply the the replace operationreplacement
- the replacement documentoptions
- the options to apply to the 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
.CompletionStage<T> findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement)
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the replace operationreplacement
- the replacement 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
.CompletionStage<T> findOneAndReplace(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, T replacement, com.mongodb.client.model.FindOneAndReplaceOptions options)
clientSession
- the client session with which to associate this operationfilter
- the query filter to apply the the replace operationreplacement
- the replacement documentoptions
- the options to apply to the 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
.CompletionStage<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
filter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.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
.CompletionStage<T> findOneAndUpdate(org.bson.conversions.Bson filter, org.bson.conversions.Bson update, com.mongodb.client.model.FindOneAndUpdateOptions options)
filter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.options
- the options to apply to the 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
.CompletionStage<T> findOneAndUpdate(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson filter, org.bson.conversions.Bson update)
clientSession
- the client session with which to associate this operationfilter
- a document describing the query filter, which may not be null.update
- a document describing the update, which may not be null. The update to apply must include only update
operators.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
.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)
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
.CompletionStage<Void> drop()
CompletionStage<Void> drop(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operationCompletionStage<String> createIndex(org.bson.conversions.Bson key)
key
- an object describing the index key(s), which may not be null.CompletionStage<String> createIndex(org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
key
- an object describing the index key(s), which may not be null.options
- the options for the indexCompletionStage<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key)
clientSession
- the client session with which to associate this operationkey
- an object describing the index key(s), which may not be null.CompletionStage<String> createIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson key, com.mongodb.client.model.IndexOptions options)
clientSession
- the client session with which to associate this operationkey
- an object describing the index key(s), which may not be null.options
- the options for the indexCompletionStage<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes)
indexes
- the list of indexesCompletionStage<List<String>> createIndexes(List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
indexes
- the list of indexescreateIndexOptions
- options to use when creating indexesCompletionStage<List<String>> createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes)
clientSession
- the client session with which to associate this operationindexes
- the list of indexesCompletionStage<List<String>> createIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, List<com.mongodb.client.model.IndexModel> indexes, com.mongodb.client.model.CreateIndexOptions createIndexOptions)
clientSession
- the client session with which to associate this operationindexes
- the list of indexescreateIndexOptions
- options to use when creating indexescom.mongodb.reactivestreams.client.ListIndexesPublisher<org.bson.Document> listIndexesAsPublisher()
<D> com.mongodb.reactivestreams.client.ListIndexesPublisher<D> listIndexesAsPublisher(Class<D> clazz)
D
- the target document type of the iterable.clazz
- the class to decode each document intocom.mongodb.reactivestreams.client.ListIndexesPublisher<org.bson.Document> listIndexesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operation<D> com.mongodb.reactivestreams.client.ListIndexesPublisher<D> listIndexesAsPublisher(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listIndexes()
<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> listIndexes(Class<D> clazz)
D
- the target document type of the iterable.clazz
- the class to decode each document intoorg.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<org.bson.Document> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operation<D> org.eclipse.microprofile.reactive.streams.operators.PublisherBuilder<D> listIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, Class<D> clazz)
D
- the target document type of the iterable.clientSession
- the client session with which to associate this operationclazz
- the class to decode each document intoCompletionStage<Void> dropIndex(String indexName)
indexName
- the name of the index to removeCompletionStage<Void> dropIndex(org.bson.conversions.Bson keys)
keys
- the keys of the index to removeCompletionStage<Void> dropIndex(String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
indexName
- the name of the index to removedropIndexOptions
- options to use when dropping indexesCompletionStage<Void> dropIndex(org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
keys
- the keys of the index to removedropIndexOptions
- options to use when dropping indexesCompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName)
clientSession
- the client session with which to associate this operationindexName
- the name of the index to removeCompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys)
clientSession
- the client session with which to associate this operationkeys
- the keys of the index to removeCompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, String indexName, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
clientSession
- the client session with which to associate this operationindexName
- the name of the index to removedropIndexOptions
- options to use when dropping indexesCompletionStage<Void> dropIndex(com.mongodb.reactivestreams.client.ClientSession clientSession, org.bson.conversions.Bson keys, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
clientSession
- the client session with which to associate this operationkeys
- the keys of the index to removedropIndexOptions
- options to use when dropping indexesCompletionStage<Void> dropIndexes()
CompletionStage<Void> dropIndexes(com.mongodb.client.model.DropIndexOptions dropIndexOptions)
dropIndexOptions
- options to use when dropping indexesCompletionStage<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession)
clientSession
- the client session with which to associate this operationCompletionStage<Void> dropIndexes(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.client.model.DropIndexOptions dropIndexOptions)
clientSession
- the client session with which to associate this operationdropIndexOptions
- options to use when dropping indexesCompletionStage<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace)
newCollectionNamespace
- the name the collection will be renamed toCompletionStage<Void> renameCollection(com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
newCollectionNamespace
- the name the collection will be renamed tooptions
- the options for renaming a collectionCompletionStage<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace)
clientSession
- the client session with which to associate this operationnewCollectionNamespace
- the name the collection will be renamed toCompletionStage<Void> renameCollection(com.mongodb.reactivestreams.client.ClientSession clientSession, com.mongodb.MongoNamespace newCollectionNamespace, com.mongodb.client.model.RenameCollectionOptions options)
clientSession
- the client session with which to associate this operationnewCollectionNamespace
- the name the collection will be renamed tooptions
- the options for renaming a collectionCopyright © 2019 JBoss by Red Hat. All rights reserved.