mongo-java-driver
mongo-java-driver copied to clipboard
Create and document Java sync improved bulk write API
Documentation:
- https://www.mongodb.com/docs/upcoming/reference/command/bulkWrite
- https://github.com/mongodb/specifications/blob/master/source/crud/bulk-write.md
API changes (only new program elements were introduced):
-
com.mongodb.client.model.bulk1.1.ClientWriteModel- note how unlikeWriteModel, it does not have a type parameter specifying the document type. Initially I implemented that (48b9614340953609cdc82231524b446fa6f49f4e), but then I removed it (af854edb75e3787e3e10d4fda800ca07e6d97a08) because I don't think it is needed in this case. 1.2.ClientDeleteOptions,ClientReplaceOptions,ClientUpdateOptions1.3.ClientBulkWriteOptions -
com.mongodb.client.result.bulk2.2.ClientDeleteResult2.3.ClientInsertOneResult2.4.ClientUpdateResult2.5.ClientBulkWriteResult -
com.mongodb.ClientBulkWriteException -
com.mongodb.client.MongoCluster.bulkWrite(4 overloads)
BULK-TODO code comments:
The BULK-TODO code comments will be turned into comments (where possible) in the PR to merge JAVA-4586_bulk-write into master, which will be created once this PR is approved and merged into JAVA-4586_bulk-write.
JAVA-5527