Talend Tutorial5 Filtering Data Using The TMap Component
Talend Tutorial5 Filtering Data Using The TMap Component
Left Section displays the incoming data flows. Note that there can be multiple
inputs into the tMap component.
Middle Section displays the mapping links between the input and output data
flows. Here you can also create variables that use input values, and are then used
to produce output.
Right Section displays the output data flows.
Bottom Section is the Schema editor that can be used to modify the schema of an
input or output flow. To edit a Schema, select the input/output flow whose schema
you want to change (the selected flow is highlighted in yellow) and edit the schema
in the Schema editor.
b. To create a new output component, in the output section of the tMap_1 wizard, click
the [+] button, type the name of the output as filteredOutput, and click OK.
An empty output is created.
c. To add columns to the output, in the Schema editor of the output, click the [+] icon.
d. Define a column for movie ID (Column: movieID, Type: Integer, and Length: 4).
Note: The output column name need not be the same as the input column name. To
change the column name, edit the entry in the Schema editor.
e. To send the data from the movieID column of the input file to the output column, click
movieID, hold, and drag to the Expression column of filteredOutput.
A yellow arrow appears indicating the flow of data.
f. To add the title and releaseYear columns to the output component and link them,
select and drag the columns from the input component to the output component.
g. To change the order of the columns in the output component, click the [] or []
icons.
The column order and the corresponding links will be updated.