Aggregating the output data - 7.1

Talend Big Data Studio User Guide

author
Talend Documentation Team
EnrichVersion
7.1
EnrichProdName
Talend Big Data
task
Design and Development
EnrichPlatform
Talend Studio

About this task

With tXMLMap, you can define as many aggregate elements as required in the output XML tree to class the XML data accordingly. Then this component outputs these classes, each as one complete XML flow.

Procedure

  1. To define an element as aggregate element, simply right-click this element of interest in the XML tree view on the output side of the Map editor and from the contextual menu, select As aggregate element.
    Then this element becomes the aggregate element. Texts in red are added to it, reading aggregate. The following figure presents an example.
  2. To revoke the definition of the aggregate element, simply right-click the defined aggregate element and from the contextual menu, select Remove aggregate element.

Results

Note:

To define an element as aggregate element, ensure that this element has no child element and the All in one feature is being disabled. The As aggregate element option is not available in the contextual menu until both of the conditions are respected. For further information about the All in one feature, see Outputing elements into one document.

For an example about how to use the aggregate element with tXMLMap, see Classifying the output data with aggregate element.

Note: tXMLMap provides group element and aggregate element to classify data in the XML tree structure. When handling one row of data ( one complete XML flow), the behavioral difference between them is:
  • The group element processes the data always within one single flow.

  • The aggregate element splits this flow into separate and complete XML flows.