public double setWorkUnitEstSizes ( Map < String , List < WorkUnit > > workUnitsByTopic ) { double totalEstDataSize = 0 ; for ( List < WorkUnit > workUnitsForTopic : workUnitsByTopic . values ( ) ) { for ( WorkUnit workUnit : workUnitsForTopic ) { setWorkUnitEstSize ( workUnit ) ; totalEstDataSize += getWorkUnitEstSize ( workUnit ) ; } } return totalEstDataSize ; }
Calculate the total size of the workUnits and set the estimated size for each workUnit