the underlying java MongoCollection
Aggregates documents according to the specified aggregation pipeline.
Aggregates documents according to the specified aggregation pipeline.
the aggregate pipeline
a Observable containing the result of the aggregation operation Aggregation
Executes a mix of inserts, updates, replaces, and deletes.
Executes a mix of inserts, updates, replaces, and deletes.
the writes to execute
the options to apply to the bulk write operation
a Observable with a single element the BulkWriteResult
Executes a mix of inserts, updates, replaces, and deletes.
Executes a mix of inserts, updates, replaces, and deletes.
the writes to execute
a Observable with a single element the BulkWriteResult
Get the codec registry for the MongoDatabase.
Get the codec registry for the MongoDatabase.
the { @link org.bson.codecs.configuration.CodecRegistry}
Counts the number of documents in the collection according to the given options.
Counts the number of documents in the collection according to the given options.
the query filter
the options describing the count
a Observable with a single element indicating the number of documents
Counts the number of documents in the collection according to the given options.
Counts the number of documents in the collection according to the given options.
the query filter
a Observable with a single element indicating the number of documents
Counts the number of documents in the collection.
Counts the number of documents in the collection.
a Observable with a single element indicating the number of documents
an object describing the index key(s), which may not be null. This can be of any type for which a { @code Codec} is registered
the options for the index
a Observable with a single element indicating when the operation has completed
Create an Index
Create an Index
an object describing the index key(s), which may not be null. This can be of any type for which a { @code Codec} is registered
a Observable with a single element indicating when the operation has completed Ensure Index
the list of indexes to create
a Observable with a single element indicating when the operation has completed
Removes all documents from the collection that match the given query filter.
Removes all documents from the collection that match the given query filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
Removes at most one document from the collection that matches the given filter.
Removes at most one document from the collection that matches the given filter. If no documents match, the collection is not modified.
the query filter to apply the the delete operation
a Observable with a single element the DeleteResult or with an com.mongodb.MongoException
Gets the distinct values of the specified field name.
Gets the distinct values of the specified field name.
the target type of the iterable.
the field name
the query filter
a Observable emitting the sequence of distinct values
Gets the distinct values of the specified field name.
Gets the distinct values of the specified field name.
the target type of the iterable.
the field name
a Observable emitting the sequence of distinct values
Get the default class to cast any documents returned from the database into.
Get the default class to cast any documents returned from the database into.
the default class to cast any documents into
Drops this collection from the Database.
Drops this collection from the Database.
a Observable with a single element indicating when the operation has completed Drop Collection
Drops the index given the keys used to create it.
Drops the index given the keys used to create it.
the keys of the index to remove
a Observable with a single element indicating when the operation has completed
Drops the given index.
Drops the given index.
the name of the index to remove
a Observable with a single element indicating when the operation has completed
Drop all the indexes on this collection, except for the default on _id.
Drop all the indexes on this collection, except for the default on _id.
a Observable with a single element indicating when the operation has completed
Finds all documents in the collection.
Finds all documents in the collection.
the target document type of the iterable.
the query filter
the find Observable
Finds all documents in the collection.
Finds all documents in the collection.
the target document type of the iterable.
the find Observable
Atomically find a document and remove it.
Atomically find a document and remove it.
the query filter to find the document with
the options to apply to the operation
a Observable with a single element the document that was removed. If no documents matched the query filter, then null will be returned
Atomically find a document and remove it.
Atomically find a document and remove it.
the query filter to find the document with
a Observable with a single element the document that was removed. If no documents matched the query filter, then null will be returned
Atomically find a document and replace it.
Atomically find a document and replace it.
the query filter to apply the the replace operation
the replacement document
the options to apply to the operation
a Observable with a single element the document that was replaced. Depending on the value of the { @code 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 null will be returned
Atomically find a document and replace it.
Atomically find a document and replace it.
the query filter to apply the the replace operation
the replacement document
a Observable with a single element the document that was replaced. Depending on the value of the { @code 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 null will be returned
Atomically find a document and update it.
Atomically find a document and update it.
a document describing the query filter, which may not be null. This can be of any type for which a { @code Codec} is registered
a document describing the update, which may not be null. The update to apply must include only update operators. This can be of any type for which a { @code Codec} is registered
the options to apply to the operation
a Observable with a single element the document that was updated. Depending on the value of the { @code 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 null will be returned
Atomically find a document and update it.
Atomically find a document and update it.
a document describing the query filter, which may not be null. This can be of any type for which a { @code Codec} is registered
a document describing the update, which may not be null. The update to apply must include only update operators. This can be of any type for which a { @code Codec} is registered
a Observable with a single element the document that was updated before the update was applied. If no documents matched the query filter, then null will be returned
Inserts a batch of documents.
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API. However, when talking with a server < 2.6, using this method will be faster due to constraints in the bulk API related to error handling.
the documents to insert
the options to apply to the operation
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
Inserts a batch of documents.
Inserts a batch of documents. The preferred way to perform bulk inserts is to use the BulkWrite API. However, when talking with a server < 2.6, using this method will be faster due to constraints in the bulk API related to error handling.
the documents to insert
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
Inserts the provided document.
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
the document to insert
the options to apply to the operation
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
1.1
Inserts the provided document.
Inserts the provided document. If the document is missing an identifier, the driver should generate one.
the document to insert
a Observable with a single element indicating when the operation has completed or with either a com.mongodb.DuplicateKeyException or com.mongodb.MongoException
Get all the indexes in this collection.
Get all the indexes in this collection.
the target document type of the iterable.
the fluent list indexes interface
Aggregates documents according to the specified map-reduce function.
Aggregates documents according to the specified map-reduce function.
the target document type of the iterable.
A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
A JavaScript function that "reduces" to a single object all the values associated with a particular key.
a Observable containing the result of the map-reduce operation map-reduce
Gets the namespace of this collection.
Gets the namespace of this collection.
the namespace
Get the read concern for the MongoDatabase.
Get the read preference for the MongoDatabase.
Get the read preference for the MongoDatabase.
the { @link com.mongodb.ReadPreference}
Rename the collection with oldCollectionName to the newCollectionName.
Rename the collection with oldCollectionName to the newCollectionName.
the name the collection will be renamed to
the options for renaming a collection
a Observable with a single element indicating when the operation has completed
Rename the collection with oldCollectionName to the newCollectionName.
Rename the collection with oldCollectionName to the newCollectionName.
the namespace the collection will be renamed to
a Observable with a single element indicating when the operation has completed
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments.
the query filter to apply the the replace operation
the replacement document
the options to apply to the replace operation
a Observable with a single element the UpdateResult
Replace a document in the collection according to the specified arguments.
Replace a document in the collection according to the specified arguments.
the query filter to apply the the replace operation
the replacement document
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a { @code Codec} is registered
a document describing the update, which may not be null. The update to apply must include only update operators. This can be of any type for which a { @code Codec} is registered
the options to apply to the update operation
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a { @code Codec} is registered
a document describing the update, which may not be null. The update to apply must include only update operators. This can be of any type for which a { @code Codec} is registered
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a { @code Codec} is registered
a document describing the update, which may not be null. The update to apply must include only update operators. This can be of any type for which a { @code Codec} is registered
the options to apply to the update operation
a Observable with a single element the UpdateResult
Update a single document in the collection according to the specified arguments.
Update a single document in the collection according to the specified arguments.
a document describing the query filter, which may not be null. This can be of any type for which a { @code Codec} is registered
a document describing the update, which may not be null. The update to apply must include only update operators. This can be of any type for which a { @code Codec} is registered
a Observable with a single element the UpdateResult
Create a new MongoCollection instance with a different codec registry.
Create a new MongoCollection instance with a different codec registry.
the new { @link org.bson.codecs.configuration.CodecRegistry} for the collection
a new MongoCollection instance with the different codec registry
Create a new MongoCollection instance with a different default class to cast any documents returned from the database into..
Create a new MongoCollection instance with a different default class to cast any documents returned from the database into..
The type that the new collection will encode documents from and decode documents to
a new MongoCollection instance with the different default class
Create a new MongoCollection instance with a different read concern.
Create a new MongoCollection instance with a different read concern.
the new ReadConcern for the collection
a new MongoCollection instance with the different ReadConcern
1.1
Create a new MongoCollection instance with a different read preference.
Create a new MongoCollection instance with a different read preference.
the new { @link com.mongodb.ReadPreference} for the collection
a new MongoCollection instance with the different readPreference
Create a new MongoCollection instance with a different write concern.
Create a new MongoCollection instance with a different write concern.
the new { @link com.mongodb.WriteConcern} for the collection
a new MongoCollection instance with the different writeConcern
Get the write concern for the MongoDatabase.
Get the write concern for the MongoDatabase.
the { @link com.mongodb.WriteConcern}
The MongoCollection representation.
The type that this collection will encode documents from and decode documents to.
the underlying java MongoCollection
1.0