public final class DeleteRequest extends WriteRequest
WriteRequest.Type| Constructor and Description | 
|---|
| DeleteRequest(BsonDocument filter)Construct a new instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| DeleteRequest | collation(Collation collation)Sets the collation options | 
| Collation | getCollation()Returns the collation options | 
| BsonDocument | getFilter()Gets the query Object filter. | 
| WriteRequest.Type | getType()Gets the type of the write. | 
| boolean | isMulti()Gets whether all documents matching the query filter will be removed. | 
| DeleteRequest | multi(boolean isMulti)Sets whether all documents matching the query filter will be removed. | 
public DeleteRequest(BsonDocument filter)
filter - the non-null query filterpublic BsonDocument getFilter()
public DeleteRequest multi(boolean isMulti)
isMulti - true if all documents matching the query filter will be removedpublic boolean isMulti()
public Collation getCollation()
public DeleteRequest collation(Collation collation)
A null value represents the server default.
collation - the collation options to usepublic WriteRequest.Type getType()
WriteRequestgetType in class WriteRequest