Gets the SINGLE downstream processor task index to send message to.
Gets the SINGLE downstream processor task index to send message to.
Message you want to send
How many tasks does the downstream processor have.
ONE task index of downstream processor.
The idea of ShuffleGroupingPartitioner is derived from Storm. Messages are randomly distributed across the downstream's tasks in a way such that each task is guaranteed to get an equal number of messages.