I want to read a csv file, enrich each row with some data from some other external system and then write the new enriched csv to some directory Now to get the data from external system i need to pass each row one by one and get the new columns from external system. But to query the external system with each row i need to pass a value which i have got from external system by sending all the values of a perticular column. e.g - my csv file is -
name, value, age
10,v1,12
11,v2,13
so to enrich that i first need to fetch a value as per total age - i.e 12 + 13 and get the value total from external system and then i need to send that total with each row to external system to get the enriched value. I am doing it using spring batch but using fLatFileReader i can read only one line at a time. How would i refer to whole column before that.
Please help.
Thanks