produceRecordsWithPartitions

Rewrites the partitions of records using the passed Partitioner, after getting the list of partitions to write to