Hierarchical output structure editor
The examples in the following table use the CSV sample provided in Creating a hierarchical map from a flat structure as input.
Feature | Description | Example |
---|---|---|
Add GroupBy |
Arranges the children elements into a set of groups based on the value of the selected GroupBy element. If a single element is selected, an array with all unique values for this element is created. If multiple elements are selected, the first child element in the selection is automatically used as the GroupBy element. You can change it by right-clicking a child element and clicking Select as GroupBy element. |
|
Add Array |
Creates a collection of elements that loops on the input row element if it exists, and the input root element otherwise. If a single element is selected, a primitive array containing the value of the element is created. If multiple elements are selected, an array of records is created. When this feature is used on an element inside a GroupBy, it allows you to create groups. |
|
Add Record |
Creates a record from the element(s) selected. |
If you select the Movie and Year elements, the
record looks like this:
|
Convert GroupBy/Array Item Type |
Changes an array or a set of groups from a primitive item type to a record item type,
or the other way around.
Information noteNote: This option is available on a record item only when the
records contains a single element.
|
If you create an array from the Movie element and click
Convert GroupBy/Array Item Type, the array looks like
this:
|
Convert to Array |
Converts a set of groups into an array. |
If you convert groups containing the Gender and
Name elements grouped by Gender into an array, the
array looks like this:
|
Convert to GroupBy |
Converts an array into groups. By default, the first child element in the array is automatically selected as the GroupBy element. You can change it by right-clicking a child element and clicking Select as GroupBy element. You can also convert the root element into a set of groups. |
If you convert the root element to a group and select
Year as the GroupBy element, the output
looks like this:
|