Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Access Policy transformation
  6. Aggregator transformation
  7. B2B transformation
  8. Chunking transformation
  9. Cleanse transformation
  10. Data Masking transformation
  11. Data Services transformation
  12. Deduplicate transformation
  13. Expression transformation
  14. Filter transformation
  15. Hierarchy Builder transformation
  16. Hierarchy Parser transformation
  17. Hierarchy Processor transformation
  18. Input transformation
  19. Java transformation
  20. Java transformation API reference
  21. Joiner transformation
  22. Labeler transformation
  23. Lookup transformation
  24. Machine Learning transformation
  25. Mapplet transformation
  26. Normalizer transformation
  27. Output transformation
  28. Parse transformation
  29. Python transformation
  30. Rank transformation
  31. Router transformation
  32. Rule Specification transformation
  33. Sequence transformation
  34. Sorter transformation
  35. SQL transformation
  36. Structure Parser transformation
  37. Transaction Control transformation
  38. Union transformation
  39. Vector Embedding transformation
  40. Velocity transformation
  41. Verifier transformation
  42. Web Services transformation

Transformations

Transformations

Add single occurring children

Add single occurring children

You can add single occurring children when adding incoming struct and array fields to the output and the output format is relational. The "Add single occurring children" option adds all single occurring children under the field to the output group, including the single occurring child fields that are nested under a struct.
When you select "Add single occurring children", the incoming field must have child objects.
If the field you select contains an array, the array and its children are not added because an array can contain multiple elements.

Example of adding single occurring children

You want to extract customer information from the Customer array, with each output record containing information about one customer.
Select
Add
on the Customer array, with the
Add Single Occurring Children
option selected. This action adds all single occurring children under Customer, including the children under the FullAddress struct to the output group.
Note that you cannot add single occurring children at the Customers struct level, because there are no single occurring children under that top-level struct.
The following image shows the incoming and output fields:
The list of incoming fields on the left includes a top-level struct: Customers. Below that struct is an array: Customer. The Customer array contains five string fields and a struct: FullAddress. The struct FullAddress contains three string fields. The output group on the right, after applying Add Single Occurring Children, contains eight string fields.

0 COMMENTS

We’d like to hear from you!