Remove java partitions

This replaces all occurrences to Java partitions with Scala partitions.