I want to write a custom partitioner in spark and I'm working on java.
However I've noticed that the javaRDD class (or Dataset class) doesn't have a partitionBy(Partitioner) method like in scala. Only the javaPairRDD does. How am I supposed to partition RDDs or Datasets without this method ?