Component family |
Data Quality |
|
Function |
tAddCRCRow calculates a surrogate |
|
Purpose |
Providing a unique ID helps improving the quality of processed |
|
Basic settings |
Schema and Edit |
A schema is a row description. it defines the number of fields to be processed and Since version 5.6, both the Built-In mode and the Repository mode are In this component, a new CRC column is automatically added. |
|
|
Built-in: The schema will be |
|
|
Repository: The schema already |
|
Implication |
Select the check box facing the relevant columns to be used for |
Advanced Settings |
CRC type |
Select a CRC type in the list. The longer the CRC, the least |
|
tStat |
Select this check box to collect log data at the component |
Global Variables |
NB_LINE: the number of rows read by an input component or ERROR_MESSAGE: the error message generated by the A Flow variable functions during the execution of a component while an After variable To fill up a field or expression with a variable, press Ctrl + For further information about variables, see Talend Studio |
|
Usage |
This component is an intermediary step. It requires an input flow |
|
Limitation |
Due to license incompatibility, one or more JARs required to use this component are not |
This scenario describes a Job adding a surrogate key to a delimited file
schema.
-
Drop the following components: tFileInputDelimited, tAddCRCRow and tLogRow.
-
Connect them using a Main row
connection.
-
In the tFileInputDelimited
Component view, set the File Name path and all related properties in case
these are not stored in the Repository. -
Create the schema through the Edit Schema
button, if the schema is not stored already in the Repository. Remember to set the data
type column and for more information on the Date pattern to be filled in,
visit http://docs.oracle.com/javase/6/docs/api/index.html.
-
In the tAddCRCRow
Component view, select the check boxes of
the input flow columns to be used to calculate the CRC.Notice that a CRC column (read-only) has been added at the end of the
schema. -
Select CRC32 as CRC
Type to get a longer surrogate key. -
In the Basic settings view of tLogRow, select the Print
values in cells of a table option to display the output data
in a table on the Console.