Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Data Engineering Integration
  3. Mappings
  4. Mapping Optimization
  5. Sources
  6. Targets
  7. Transformations
  8. Python Transformation
  9. Data Preview
  10. Cluster Workflows
  11. Profiles
  12. Monitoring
  13. Hierarchical Data Processing
  14. Hierarchical Data Processing Configuration
  15. Hierarchical Data Processing with Schema Changes
  16. Intelligent Structure Models
  17. Blockchain
  18. Stateful Computing
  19. Appendix A: Connections Reference
  20. Appendix B: Data Type Reference
  21. Appendix C: Function Reference

Extracting Elements from a Complex Port

Extracting Elements from a Complex Port

Use the
Extract from Complex Port
wizard to extract elements from hierarchical data.
  1. In the transformation, select a complex port from which you want to extract elements.
  2. Right-click the selected ports, and select
    Hierarchical Conversions
    Extract from Complex Port
    .
    The
    Extract from Complex Port
    wizard appears with the list of elements in the complex port.
    The wizard displays the elements in the complex port. It contains the Name, Type, Type Configuration, Select Elements, and Array Index columns.
  3. In the
    Select Elements
    column, select the check box for each element that you want to extract.
  4. To extract an array element, specify an array index in the
    Array Index
    column.
    If you delete the array index, the wizard extracts the entire array. To extract an element in the struct from a complex port for an array of structs, you must specify an array index value.
    The wizard shows the array index value as 0 when you select an array element.
  5. Click
    Finish
    .
You can see the following changes in the mapping:
  • The mapping contains a new Expression transformation
    Extract_<complex_port_name>
    with the following ports:
    • The complex port from which you want to extract elements as the input port.
    • One or more output ports for the extracted elements. The number of elements that you selected to extract determines the number of output ports in the transformation.
    • A dynamic port with ports from the upstream transformation.
    The Expression transformation contains the complex port from which you want to extract elements, the new output ports, and a dynamic port.
  • The output ports contain expressions that use complex operators to extract elements.
    The following image shows the expressions for the output ports in the Expression column on the Ports tab:
    The Ports tab of the Expression transformation shows example expressions that the wizard adds for the new output ports.

0 COMMENTS

We’d like to hear from you!