Talend Data Mapper - steffenbischoff.com
-
Upload
khangminh22 -
Category
Documents
-
view
0 -
download
0
Transcript of Talend Data Mapper - steffenbischoff.com
What is Talend Data Mapper?
• Talend Data Mapper allows you to map complex data structures and documents and execute transformations
• Various complex formats: XML, JSON, EDI, HL7, Cobol, AVRO, …
• Integrated in Talend Studio (separate Perspective)
• Development, Testing, Maintenance
• XQuery
• Included in all Talend Platforms
Talend Data Mapper Advantages
• Different Formats, same way of work
• Complex mapping simplified
• Reusable
• Documentation
• Easy Testing
Talend Studio 8 - Installation
• Talend Data Mapper not enabled per default
• Enable in Features (Feature Manager)
Maps
• Create Map, select Input & Output Structure, Map elements
Drag & Drop, automaticmapping matching names
Expressions
• Expressions use functions, arguments and references to map elements in order to define the actions to be performed in the map.
• Functions: units of code that accept arguments and return a single value
• Arguments: parameters used to define a function, e.g. filter.
• Map elements: references to elements in the input or output structure of the map.
Value
• Defines the value of the element. It can be an expression or a simple reference to a map element.
Emit
• Defines the conditions where this element is emitted (forced to appear) when the element is optional or part of a choice
Util
• expression associated with the output map element
• executed before the map element is executed
Functions
• General
• Comparison and Logical
• Date and Time
• Aggregate
• Arithmetic
• Data Masking
• String
• Loop
• Special …
Custom routines / JARs
• Any code and functionality using routines
• Custom JARs need to be in Mapper Class Path
Context variables
• Context Variables
• Read in Data Mapper – Function GetMapProperty
• context.Name
Using in DI Jobs
• Use flat structure – generated from schema
• Use complex structures – Data Mapper metadata