driver-core/src/main/com/mongodb/connection/BulkWriteBatchCombiner.java
public void addResult(final BulkWriteResult result, final IndexMap indexMap) {
        insertedCount += result.getInsertedCount();
        matchedCount += result.getMatchedCount();
        deletedCount += result.getDeletedCount();
        modifiedCount += result.getModifiedCount();
        mergeUpserts(result.getUpserts(), indexMap);
    }
public void addResult(final BulkWriteResult result, final IndexMap indexMap) {
        insertedCount += result.getInsertedCount();
        matchedCount += result.getMatchedCount();
        deletedCount += result.getDeletedCount();
        modifiedCount += result.getModifiedCount();
        mergeUpserts(result.getUpserts(), indexMap);
    }
public void addResult ( final BulkWriteResult result , final IndexMap indexMap ) { insertedCount += result . getInsertedCount ( ) ; matchedCount += result . getMatchedCount ( ) ; deletedCount += result . getDeletedCount ( ) ; modifiedCount += result . getModifiedCount ( ) ; mergeUpserts ( result . getUpserts ( ) , indexMap ) ; }
Add a result

@param result   the result
@param indexMap the index map
Add a result