Sometimes it is required that multiple files are written from a single data source where the file name is dependent upon the data held within the row. This recipe shows how this can be achieved.
The steps for creating and writing files depending on the input data are as follows:
dummy.txthas been created and populated with six rows.
tJavaRowcomponent, and you will see that the move of data from input to output has already been performed.
// test for change of input_row.key if (Numeric.sequence(input_row.key, 1, 1) ...