How do I make tJavaFlex generate multiple output rows for a single input row? I don't want to use tSplitRow as I have to do other processing.
But for example, if I add a for loop inside my main code, and split my string into words the below happens, and I just get the last word in the sentence in my output flow:
tRowGenerator generating one sentence (1 row, one column):
tJavaFlex with loop in the Main section splitting the sentence into word tokens:
And this is what I get:
I had thought my loop would generate 10 rows in the output. Is there a way to make the tJavaFlex do this kind of multiplication of input rows?
In order to achieve your requirement, you need to use component tnormalize
.
Below is just a sample job using tNormalize
component and I have used the same string that you have used
I have provided item separator
as "space"
I have got the below result for simple println statement
Hope this may help you out.