Package com.mongodb.operation
The core of the MongoDB driver works via operations, using the command pattern. The main Operations supported by MongoDB are in this
package, as are helpers and infrastructure required for operation functionality.
-
Interface Summary Interface Description AsyncOperationExecutor Deprecated. there is no replacement for this interfaceAsyncReadOperation<T> An operation which asynchronously reads from a MongoDB server.AsyncWriteOperation<T> An operation which asynchronously writes to a MongoDB server.BatchCursor<T> MongoDB returns query results as batches, and this interface provideds an iterator over those batches.MapReduceAsyncBatchCursor<T> Represents the future results of a map-reduce operation as a cursor.MapReduceBatchCursor<T> Represents the results of a map-reduce operation as a cursor.OperationExecutor Deprecated. there is no replacement for this interfaceReadOperation<T> An operation that reads from a MongoDB server.WriteOperation<T> An operation which writes to a MongoDB server. -
Class Summary Class Description AbortTransactionOperation An operation that aborts a transaction.AggregateOperation<T> An operation that executes an aggregation query.AggregateToCollectionOperation An operation that executes an aggregation that writes its results to a collection (which is what makes this a write operation rather than a read operation).BaseFindAndModifyOperation<T> Abstract base class for findAndModify-based operationsBaseWriteOperation Abstract base class for write operations.ChangeStreamOperation<T> An operation that executes an$changeStream
aggregation.CommandReadOperation<T> An operation that executes an arbitrary command that reads from the server.CommandWriteOperation<T> An operation that executes an arbitrary command that writes to the server.CommitTransactionOperation An operation that commits a transaction.CountOperation An operation that executes a count.CreateCollectionOperation An operation to create a collectionCreateIndexesOperation An operation that creates one or more indexes.CreateUserOperation Deprecated. useCommandWriteOperation
directly or the mongod shell helpers.CreateViewOperation An operation to create a view.CurrentOpOperation An operation that determines the current operation on a MongoDB server.DeleteOperation An operation that deletes one or more documents from a collection.DistinctOperation<T> Finds the distinct values for a specified field across a single collection.DropCollectionOperation Operation to drop a Collection in MongoDB.DropDatabaseOperation Operation to drop a database in MongoDB.DropIndexOperation An operation that drops an index.DropUserOperation Deprecated. useCommandWriteOperation
directly or the mongod shell helpers.FindAndDeleteOperation<T> An operation that atomically finds and deletes a single document.FindAndReplaceOperation<T> An operation that atomically finds and replaces a single document.FindAndUpdateOperation<T> An operation that atomically finds and updates a single document.FindOperation<T> An operation that queries a collection using the provided criteria.FsyncUnlockOperation Unlocks the MongoDB server, allowing write operations to go through.GroupOperation<T> Groups documents in a collection by the specified key and performs simple aggregation functions, such as computing counts and sums.InsertOperation An operation that inserts one or more documents into a collection.ListCollectionsOperation<T> An operation that provides a cursor allowing iteration through the metadata of all the collections in a database.ListDatabasesOperation<T> An operation that provides a cursor allowing iteration through the metadata of all the databases for a MongoClient.ListIndexesOperation<T> An operation that lists the indexes that have been created on a collection.MapReduceStatistics Common statistics returned by running all types of map-reduce operations.MapReduceToCollectionOperation Operation that runs a Map Reduce against a MongoDB instance.MapReduceWithInlineResultsOperation<T> Operation that runs a Map Reduce against a MongoDB instance.MixedBulkWriteOperation An operation to execute a series of write operations in bulk.ParallelCollectionScanOperation<T> Return a list of cursors over the collection that can be used to scan it in parallel.RenameCollectionOperation An operation that renames the given collection to the new name.TransactionOperation A base class for transaction-related operationsUpdateOperation An operation that updates a document in a collection.UpdateUserOperation Deprecated. useCommandWriteOperation
directly or the mongod shell helpers.UserExistsOperation Deprecated. useCommandWriteOperation
directly or the mongod shell helpers. -
Enum Summary Enum Description OrderBy Enumeration of possible index orders