Java based partition calculation.