Table of Contents

Search

  1. Preface
  2. Introduction to Informatica Big Data Management
  3. Mappings
  4. Sources
  5. Targets
  6. Transformations
  7. Data Preview
  8. Cluster Workflows
  9. Profiles
  10. Monitoring
  11. Hierarchical Data Processing
  12. Hierarchical Data Processing Configuration
  13. Hierarchical Data Processing with Schema Changes
  14. Intelligent Structure Models
  15. Stateful Computing
  16. Connections
  17. Data Type Reference
  18. 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.


Updated January 20, 2020