Skip to main content Skip to complementary content

Defining the properties of tHMap

Procedure

  1. Select the tHMap component to define its properties.
  2. Click the [...] button next to the Open Map Editor field to create a new map.
  3. In the tHMap Structure Generate/Select dialog box that opens, select Generate hierarchical mapper structure based on the schema for the input structure, and then click Next and then Finish. This means that Talend Data Mapper will automatically generate a structure for you, based on the schema of the input component (tRowGenerator in this case).
  4. For the output structure, select Select an existing hierarchical mapper structure, and then click Next.
  5. Select the JSON_structure structure that you created earlier, and then click Next and then Finish.
  6. In the Map editor that opens, drag row from Input (Map) to person in Output (JSON) to map each of the input elements to its corresponding output element.
  7. Double-click SimpleLoop in Loop tab and, in the properties box that opens, check Stream Input and then click OK.
  8. Press Ctrl+S to save your changes to the map.

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 – please let us know!