Adding Java/Java Streaming versions of `repartition` with associated tests