public class BulkWriteRequestBuilder extends Object
Modifier and Type | Method and Description |
---|---|
void |
remove()
Adds a request to remove all matching documents to the bulk operation.
|
void |
removeOne()
Adds a request to remove one matching documents to the bulk operation.
|
void |
replaceOne(DBObject document)
Adds a request to replace one matching documents to the bulk operation.
|
void |
update(DBObject update)
Adds a request to replace one matching documents to the bulk operation.
|
void |
updateOne(DBObject update)
Adds a request to update one matching documents to the bulk operation.
|
BulkUpdateRequestBuilder |
upsert()
Specifies that the request being built should be an upsert.
|
public void remove()
public void removeOne()
public void replaceOne(DBObject document)
document
- the replacement documentpublic void update(DBObject update)
update
- the update criteriapublic void updateOne(DBObject update)
update
- the update criteriapublic BulkUpdateRequestBuilder upsert()