简体   繁体   中英

INFORMATICA - Java Transformation - Dynamic Arrays

I've an input row that is a name of names separated by spaces (like Informatica Academy, The Lousy Informatica Ctr, Power Center Tech, etc). A Java Transformation can help store the names in array but can the output rows vary by the array length (in the example above, 2, 4 and 3). Later, I'll be validating each name against a lookup table if it is the abbreviated version like Ctr for Center, Tech for Technology; and then pass the expanded name as the output.

Yes, you can generate any number of rows from an input row in Java transformation. Loop over the array elements and for each iteration assign the output ports followed by a call to generateRow() function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM