I am exploring the Switch Stage
I have used the Selector Mode as Hash
Though my job is running fine i am not able to understand how the rows are getting distributed among the output links
The help document has the following description for this mode
The incoming rows are hashed on the selector column modulo the number of output links and assigned to an output link accordingly.
Hi
A switch stage is used to split your input rows in to different targets based on a column value. This works like a case statement in any programming language.
you need to specify the column value and then the link number and the switch will output the row based on that column to that particular link.
This is clearly explained in the Parallel guide with an example.
But I think u have not understood the question.
:D
Is there a formula that is used by the Hashing algorithm to decide the number or records to be sent to a particular o/p link.
The incoming rows are hashed on the selector column modulo the number of output links and assigned to an output link accordingly.