Creating tMap expressions
In the previous example, we demonstrated how to manipulate the schemas and basic mapping of input columns to output columns. This recipe will show how to add much more complex rules to tMap
and how to use the Talend supplied functions.
Expressions are limited to a single line of Java code, but can contain any of the following:
- Constants
- Input variables
- The
globalMap
andcontext
variables - The
tMap
variables (see next recipe) - Talend supplied functions
- User supplied code routines
- Standard Custom java functions
- Included methods from JAR files
Getting ready
Open the job jo_cook_ch04_0020_usingExpressions
How to do it...
- Open
tMap
. - Click the left mouse button on the output
transactionDateTime
column. - You will notice that the expression button ...
Get Talend Open Studio Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.