Here is a simple example, in which I will read the following file -
Ergo, grouping will be done based on band name e.g. Jethro Tull.
Again, the output file should just include distinct band names, in my case, the following - Jethro Tull, Horslips, Pink Floyd.
The input file, albums.xml, will be read via the FTP adapter, I then write the output file, which will have the following structure -
for-each-group will be used in the mapper, so here is the map definition -
Here are the settings -
for-each-group is set to album
group-by is set to @band
name is set to band
I run the integration and check the output file -
No comments:
Post a Comment