I have a list of data like the following.
BLOKA, S1
BLOKB, I2
BLOKB, S3
BLOKA, I2
BLOKA, I1
BLOKB, I1
BLOKB, S3
As there are two keys, the data will go to two reducers. How can I achieve that reducer receive value in sorted order like below?
BLOK A, [I1, I2, S1]
BLOK B, [I2, I2, S3, S3]