Usage of tJava, tJavaRow and tJavaFlex - Cloud - 8.0

Java custom code

Version
Cloud
8.0
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Cloud
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Custom code components (Integration) > Java custom code components
Data Quality and Preparation > Third-party systems > Custom code components (Integration) > Java custom code components
Design and Development > Third-party systems > Custom code components (Integration) > Java custom code components
Last publication date
2023-09-14
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. It accesses and transforms the input flow and 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.