public double calculateInitialTotalCost ( final List < ServerHolder > serverHolders ) { double cost = 0 ; for ( ServerHolder server : serverHolders ) { Iterable < DataSegment > segments = server . getServer ( ) . getLazyAllSegments ( ) ; for ( DataSegment s : segments ) { cost += computeJointSegmentsCost ( s , segments ) ; } } return cost ; }
Calculates the initial cost of the Druid segment configuration .