How can we sort within Partition without shuffling data in JavaPairRDD?

17 Views Asked by At

Strangley JavaPairRDD doesn't have sortWithinPartition but instead it expects repartitionAndSortWithinPartition. To implement this I had to write an Identical partitioner which returns the same partition for records in same partition.

Do we have any other better way to solve this?

0

There are 0 best solutions below