Skip to main content Skip to complementary content

Filtering the salary records

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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!