protected int determineElementsPerPart ( int numberOfPartitions ) { double numberOfElementsWithinFile = sourceFile . getFilledUpFromContentStart ( ) / sourceFile . getElementSize ( ) ; double elementsPerPart = numberOfElementsWithinFile / numberOfPartitions ; int roundNumber = ( int ) Math . ceil ( elementsPerPart ) ; return roundNumber ; }
Determines the number of elements when the partitions must have equal sizes