Talend tjava - tjavarow and tjavaflex differences

What is the difference between tjava, tjavarow and tjava flex. This is a very basic question that every Talend data integration enthusiast should know. And, this is one of the most commonly asked question for Talend data integration interview questions.

 

tjava:

 

·         tjava component is used to execute a block of java code as a separate subjob.

 

·         Usually tjava will not have any input or output links.

 

 

·         The code entered in tjava component will be executed first, but only one in a subjob.

 

·         This component applies exclusively to the start part of the generated code of the subjob.

 

tjavarow: 

 

·         tjavarow component applies exclusively to the main part of the generated code of the subjob.

 

·         This component can access the input flow and transform the data.

 

 

·         tjavarow will be usually used as an intermediate component to read the input flow of data and to transform it.

 

·         The code written in this component will be executed iteratively for each of the incoming data row.

 

tjavaflex:

 

·         This component is similar to the tjavarow component, but the difference is that, it has 3 parts, start, main and end.

 

·         The start and end part will be executed only once in the subjob.

 

 

·         The main part will execute iteratively for each of the incoming data row.

 

·         The start and end part is generally used for initialization and processing operations.

 

 

·         The main part is used to read the input data row and apply transformations.