Filtering the salary records - 6.4

Global variable

author
Talend Documentation Team
EnrichVersion
6.4
EnrichProdName
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 Open Studio for MDM
Talend Real-Time Big Data Platform
task
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
EnrichPlatform
Talend Studio

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.