@@ -214,8 +214,8 @@ see the following API Documentation:
214
214
Order of Execution
215
215
------------------
216
216
217
- The ``bulkWrite()`` method accepts an optional ``BulkWriteOptions`` as
218
- a second parameter to specify the execution of the bulk operations as
217
+ The ``bulkWrite()`` method accepts an optional ``BulkWriteOptions`` as a
218
+ second parameter to specify whether the execution of the bulk operations is
219
219
ordered or unordered.
220
220
221
221
Ordered Execution
@@ -230,13 +230,13 @@ Example
230
230
231
231
The following example performs these bulk operations:
232
232
233
- - An insert operation for a document where the ``name`` is ``"Zaynab Omar"`` and the
234
- ``age`` is ``37``
235
- - A replace operation for a document where the ``_id`` is ``1`` with a new document
233
+ - An operation that inserts a document with a ``name`` value of ``"Zaynab Omar"`` and an
234
+ ``age`` value of ``37``
235
+ - An operation that replaces the document where the ``_id`` is ``1`` with a new document
236
236
that contains the ``location`` field
237
- - An update operation for a document where the ``name`` is ``"Zaynab Omar"`` to change the ``name``
238
- field to ``"Zaynab Hassan"``
239
- - A delete operation for all documents that have an ``age`` value greater than ``50``
237
+ - An operation that updates the document with a ``name`` value of ``"Zaynab Omar"`` and
238
+ changes the ``name`` to ``"Zaynab Hassan"``
239
+ - An operation that deletes all documents where the ``age`` value is greater than ``50``
240
240
241
241
.. literalinclude:: /includes/fundamentals/code-snippets/BulkWrite.java
242
242
:language: java
@@ -308,4 +308,5 @@ There are 6 different ``WriteModel`` documents: ``InsertOneModel``,
308
308
There are two ways to execute the ``bulkWrite()`` method:
309
309
310
310
- Ordered, which performs the bulk operations in order until an error occurs, if any
311
- - Unordered, which performs all the bulk operations in any order and reports errors at the end, if any
311
+ - Unordered, which performs all the bulk operations in any order and reports errors
312
+ at the end, if any
0 commit comments