Modifier and Type | Method | Description |
---|---|---|
BulkUpdateRequestBuilder |
arrayFilters(List<? extends DBObject> arrayFilters) |
Specifies that the request being built should use the given array filters for an update.
|
BulkWriteRequestBuilder |
collation(Collation collation) |
Sets the collation
|
Collation |
getCollation() |
Returns the collation
|
void |
remove() |
Adds a request to remove all documents in the collection that match the query with which this builder was created.
|
void |
removeOne() |
Adds a request to remove one document in the collection that matches the query with which this builder was created.
|
void |
replaceOne(DBObject document) |
Adds a request to replace one document in the collection that matches the query with which this builder was created.
|
void |
update(DBObject update) |
Adds a request to update all documents in the collection that match the query with which this builder was created.
|
void |
updateOne(DBObject update) |
Adds a request to update one document in the collection that matches the query with which this builder was created.
|
BulkUpdateRequestBuilder |
upsert() |
Specifies that the request being built should be an upsert.
|
@Nullable public Collation getCollation()
@Nullable public BulkWriteRequestBuilder collation(Collation collation)
collation
- the collationpublic void remove()
public void removeOne()
public void replaceOne(DBObject document)
document
- the replacement document, which must be structured just as a document you would insert. It can not contain any
update operators.public void update(DBObject update)
update
- the update criteriapublic void updateOne(DBObject update)
update
- the update criteriapublic BulkUpdateRequestBuilder upsert()
public BulkUpdateRequestBuilder arrayFilters(List<? extends DBObject> arrayFilters)
arrayFilters
- the array filters to apply to the update operation