This documentation describes the usage and the role of each component in the job design.
Usage of tJava
- What is a tJava component used for: The tJava component is generally used once to execute a piece of Java code as a separate subJob. Normally, the tJava component has no input or output data flow.
- Where is tJava used in the Job design: The Java code inserted through the tJava is executed first but only once in the subJob. This component applies exclusively to the start part of the generated code of the subJob.
Usage of tJavaRow
- What is a tJavaRow component used for: This component applies exclusively to the main part of the generated code of the subJob and access the input flow and transform the data.
- Where is tJavaRow used in the Job design: The tJavaRow is generally used once as an intermediary component in order to access and transform the input flow and the data. The Java code inserted through the tJavaRow is executed for each row.
Usage of tJavaFlex
- What is a tJavaFlex component used for: The start and the end part will be executed only once in the subJob. The main part will be executed for each row. The source data is processed at runtime by the tJavaFlex.
- Where is tJavaFlex used in the Job design: The component applies to the start, main and end part of the generated code of the subJob. The tJavaFlex is generally used to access the input flow and modify the data. It is the best component to use when initializing operations at the beginning of subJob or processing operations at the end of subJob.
Tip: The tJavaFlex is a combination of tJava and tJavaRow, mixing injection of code on a one-shot basis at the start/end of a Job as well as real data transformations for each row.