In Talend tHMap, we are trying to do custom filtering on a loop of JSON array using a Java function.
This Java function needs to have as input as the iteration of the loop being passed in as well as the entire loop itself.
This is to determine if a certain iteration of the loop should be filtered out based on other sibling instances within the same loop (which may come before or after the current instance)
How do we do that?
Look at the mapper functions: I think there is one called LoopIndex that can be used to filter based on a given loop iteration. You can read more about it here:
(look for the section titled "Mapping Looping to Non-Looping": it's not quite what you're trying to do, but it describes the component).
I don't think you can do it like that.
But what is the algorithm of this java function ?
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Learn how to make your data more available, reduce costs and cut your build time
Read about OTTO's experiences with Big Data and Personalized Experiences
Take a look at this video about Talend Integration with Databricks