Package com.mongodb.client.model.bulk
Interface ClientUpdateManyOptions
The options to apply when updating documents.
- Since:
 - 5.3
 
- 
Method Summary
Modifier and TypeMethodDescriptionarrayFilters(Iterable<? extends org.bson.conversions.Bson> arrayFilters) Sets the filters specifying to which array elements an update should apply.static ClientUpdateManyOptionsCreates the default options.Sets the collation.hint(org.bson.conversions.Bson hint) Sets the index specification,null-ifies hint string.hintString(String hintString) Sets the index name,null-ifies hint.Enables or disables creation of a document if no documents match the filter. 
- 
Method Details
- 
clientUpdateManyOptions
Creates the default options.- Returns:
 - The default options.
 
 - 
arrayFilters
ClientUpdateManyOptions arrayFilters(@Nullable Iterable<? extends org.bson.conversions.Bson> arrayFilters) Sets the filters specifying to which array elements an update should apply.- Parameters:
 arrayFilters- The array filters.nullrepresents the server default.- Returns:
 this.- See Also:
 
 - 
collation
Sets the collation.- Parameters:
 collation- The collation.nullrepresents the server default.- Returns:
 this.
 - 
hint
Sets the index specification,null-ifies hint string.- Parameters:
 hint- The index specification.nullrepresents the server default.- Returns:
 this.
 - 
hintString
Sets the index name,null-ifies hint.- Parameters:
 hintString- The index name.nullrepresents the server default.- Returns:
 this.
 - 
upsert
Enables or disables creation of a document if no documents match the filter.- Parameters:
 upsert- The upsert flag.nullrepresents the server default.- Returns:
 this.
 
 -