@@ -1619,8 +1619,17 @@ public CommandResult explainAggregate(List<DBObject> pipeline, AggregationOption
16191619 public abstract List <Cursor > parallelScan (final ParallelScanOptions options );
16201620
16211621 /**
1622- * Creates a builder for an ordered bulk operation. Write requests included in the bulk operations will be executed in order,
1623- * and will halt on the first failure.
1622+ * Creates a builder for an ordered bulk write operation, consisting of an ordered collection of write requests,
1623+ * which can be any combination of inserts, updates, replaces, or removes. Write requests included in the bulk operations will be
1624+ * executed in order, and will halt on the first failure.
1625+ * <p>
1626+ * Note: While this bulk write operation will execute on MongoDB 2.4 servers and below, the writes will be performed one at a time,
1627+ * as that is the only way to preserve the semantics of the value returned from execution or the exception thrown.
1628+ * <p>
1629+ * Note: While a bulk write operation with a mix of inserts, updates, replaces, and removes is supported,
1630+ * the implementation will batch up consecutive requests of the same type and send them to the server one at a time. For example,
1631+ * if a bulk write operation consists of 10 inserts followed by 5 updates, followed by 10 more inserts,
1632+ * it will result in three round trips to the server.
16241633 *
16251634 * @return the builder
16261635 *
@@ -1631,8 +1640,12 @@ public BulkWriteOperation initializeOrderedBulkOperation() {
16311640 }
16321641
16331642 /**
1634- * Creates a builder for an unordered bulk operation. Write requests included in the bulk operation will be executed in an undefined
1635- * order, and all requests will be executed even if some fail.
1643+ * Creates a builder for an unordered bulk operation, consisting of an unordered collection of write requests,
1644+ * which can be any combination of inserts, updates, replaces, or removes. Write requests included in the bulk operation will be
1645+ * executed in an undefined order, and all requests will be executed even if some fail.
1646+ * <p>
1647+ * Note: While this bulk write operation will execute on MongoDB 2.4 servers and below, the writes will be performed one at a time,
1648+ * as that is the only way to preserve the semantics of the value returned from execution or the exception thrown.
16361649 *
16371650 * @return the builder
16381651 *
@@ -2014,7 +2027,7 @@ public ReadPreference getReadPreference(){
20142027 */
20152028 @ Deprecated
20162029 public void slaveOk (){
2017- addOption ( Bytes .QUERYOPTION_SLAVEOK );
2030+ addOption (Bytes .QUERYOPTION_SLAVEOK );
20182031 }
20192032
20202033 /**
0 commit comments