Package | Description |
---|---|
com.mongodb.bulk |
Contains classes for representing the result of a bulk write operation.
|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
DeleteRequest |
DeleteRequest.collation(Collation collation)
Sets the collation options
|
DeleteRequest |
DeleteRequest.multi(boolean isMulti)
Sets whether all documents matching the query filter will be removed.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<DeleteRequest> |
DeleteCommandProtocol.deleteRequests |
private java.util.List<DeleteRequest> |
DeleteMessage.deleteRequests |
private java.util.List<DeleteRequest> |
DeleteProtocol.deletes |
private java.util.List<DeleteRequest> |
DeleteCommandMessage.deletes |
Modifier and Type | Method and Description |
---|---|
java.util.List<DeleteRequest> |
DeleteCommandMessage.getRequests()
Gets the list of requests.
|
Modifier and Type | Method and Description |
---|---|
WriteConcernResult |
Connection.delete(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes)
Delete the documents using the delete wire protocol and apply the write concern.
|
WriteConcernResult |
DefaultServerConnection.delete(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes) |
void |
AsyncConnection.deleteAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes,
SingleResultCallback<WriteConcernResult> callback)
Delete the documents using the delete wire protocol and apply the write concern asynchronously.
|
void |
DefaultServerConnection.deleteAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes,
SingleResultCallback<WriteConcernResult> callback) |
BulkWriteResult |
Connection.deleteCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes)
Delete the documents using the delete command.
|
BulkWriteResult |
DefaultServerConnection.deleteCommand(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes) |
void |
AsyncConnection.deleteCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes,
SingleResultCallback<BulkWriteResult> callback)
Delete the documents using the delete command asynchronously.
|
void |
DefaultServerConnection.deleteCommandAsync(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes,
SingleResultCallback<BulkWriteResult> callback) |
Constructor and Description |
---|
DeleteCommandMessage(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
MessageSettings settings,
java.util.List<DeleteRequest> deletes)
Construct an instance.
|
DeleteCommandProtocol(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes)
Construct an instance.
|
DeleteMessage(java.lang.String collectionName,
java.util.List<DeleteRequest> deletes,
MessageSettings settings)
Construct an instance.
|
DeleteProtocol(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deletes)
Construct an instance.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<DeleteRequest> |
DeleteOperation.deleteRequests |
Modifier and Type | Method and Description |
---|---|
private DeleteRequest |
DropUserOperation.getDeleteRequest() |
Modifier and Type | Method and Description |
---|---|
java.util.List<DeleteRequest> |
DeleteOperation.getDeleteRequests()
Gets the list of remove requests.
|
Modifier and Type | Method and Description |
---|---|
(package private) MixedBulkWriteOperation.Run.AsyncRunExecutor |
MixedBulkWriteOperation.Run.getDeletesRunExecutor(java.util.List<DeleteRequest> deleteRequests,
AsyncConnection connection) |
(package private) MixedBulkWriteOperation.Run.RunExecutor |
MixedBulkWriteOperation.Run.getDeletesRunExecutor(java.util.List<DeleteRequest> deleteRequests,
Connection connection) |
Constructor and Description |
---|
DeleteOperation(MongoNamespace namespace,
boolean ordered,
WriteConcern writeConcern,
java.util.List<DeleteRequest> deleteRequests)
Construct an instance.
|