Filtering the salary records - 7.3

Global variable

Version
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Custom code components (Integration) > Global variable components
Data Quality and Preparation > Third-party systems > Custom code components (Integration) > Global variable components
Design and Development > Third-party systems > Custom code components (Integration) > Global variable components

Procedure

  1. Double-click tMap to open the map editor.
    Note that the tHDFSInput component linked to this tMap has been configured along with the other tHDFSInput component linked to tAggregateRow.
  2. From the table representing the input flow (on the left side), select all the three columns and drop them to the table representing the output flow (on the right side).
  3. On the table of the input flow, click the button to display the filter expression panel.
  4. In this filter expression panel, enter row5.salary > Double.valueOf(String.valueOf(globalMap.get("avg")))
    This expression allows the tMap component to select only the salaries above the average calculated by tAggregateRow.
    Note that the row5 in this expression is the ID of the input row to the tMap component and therefore, it might be another value in your scenario.
  5. Click Apply and then OK to validate these changes.