Table of Contents

Search

  1. Preface
  2. Informatica Developer
  3. The Model Repository
  4. Searches in Informatica Developer
  5. Connections
  6. Physical Data Objects
  7. Flat File Data Objects
  8. Logical View of Data
  9. Viewing Data
  10. Application Deployment
  11. Application Patch Deployment
  12. Application Patch Deployment Example
  13. Continuous Integration and Continuous Delivery (CI/CD)
  14. Object Import and Export
  15. Appendix A: Data Type Reference
  16. Appendix B: Keyboard Shortcuts
  17. Appendix C: Connection Properties

Developer Tool Guide

Developer Tool Guide

Map Data Type

Map Data Type

A map data type represents an unordered collection of key-value pair elements. A map element is a key and value pair that maps one thing to another. To pass, generate, or process map data, assign map data type to ports.
The key must be of a primitive data type. The value can be of a primitive or complex data type. A map data type with values of a complex data type is a nested map. A nested map can contain up to three levels of nesting of map data type.
The Spark engine allows duplicate keys in the map data.
The transformation language includes subscript operator to access map elements. It also includes functions to generate and process map data.

Format

map <primitive_type -> data_type>
The following table describes the arguments for this data type:
Argument
Description
map
Name of the map column or port.
primitive_type
Data type of the key in a map element.
The key must be of a primitive data type.
data_type
Data type of the value in a map element.
The value can be of a primitive or complex data type.

Map Example

The following map column represents map data with an integer key and a string value to map customer ids with customer names:
custid_name <integer -> string>
The following example shows data values for the custid_name column:
custid_name
<26745 -> 'John Baer'>
<56743 -> 'Bobbi Apperley'>
<32879 -> 'Linda Bender'>

0 COMMENTS

We’d like to hear from you!