private boolean updateBatch ( DBObjectBatch dbObjBatch , BatchResult batchResult ) throws IOException { Map < String , Map < String , String > > objCurrScalarMap = getCurrentScalars ( dbObjBatch ) ; Map < String , Map < String , Integer > > targObjShardNos = getLinkTargetShardNumbers ( dbObjBatch ) ; for ( DBObject dbObj : dbObjBatch . getObjects ( ) ) { checkCommit ( ) ; Map < String , String > currScalarMap = objCurrScalarMap . get ( dbObj . getObjectID ( ) ) ; ObjectResult objResult = updateObject ( dbObj , currScalarMap , targObjShardNos ) ; batchResult . addObjectResult ( objResult ) ; } commitTransaction ( ) ; return batchResult . hasUpdates ( ) ; }
Update each object in the given batch updating BatchResult accordingly .