Difference between tJava,tJavarow,tJavaflex

I have listed down some of the common differences between tJava, tJavaRow and tJavaFlex component.

 

Operations tJava tJavaRow tJavaFlex
Use component to integrate your custom Java code Yes Yes Yes
It will be executed first but only once in the subjob. Yes No
It requires Input Flow No Yes No
It Requires Output Flow No If output Schema Defined If output Schema Defined
It can be used as Start of the Job Yes No Yes
It can be used as a separate subjob Yes No Yes
It accepts Main Flow or Iterator Flow Both Only Main Both
It has three Java code parts (start, main, end) No No Yes
It will Auto propagate Data No No Yes

 

tJava advantage: this component can be use as trigger component, At start of the job at end of the job.

tJavaRow : this component required main flow so it can be used at end of the Sub Job but not at the start of subjob.

tJavaFlex: this component holds capabilities of tJava & tJavaRows you can use this component for row generation, or at start of job, or at then end of sub job. or individual  subjob.  It gives you ability to auto propagate data.

Advertisements

About Umesh

Talend ETL Developer

Posted on March 2, 2015, in Talend Open Studio and tagged , , , , , . Bookmark the permalink. 4 Comments.

  1. I would mention one relevant difference between tJavaRow and tJavaFlex: In tJavaRow is possible to use input_row and output_row variables as a general pointer to the input and output rows without knowing the exact names. In tJavaFlex it’s not supported.

  2. Hi Umesh,
    I am using Talend Open Studio for Big Data. It does not have log4j . Can I use tJavaFlex or tJava row component for logging purpose. I want to log start and endtime of each component. For instance if the job is like this tMYSQLInput –> tMap –> tMySQLOutput . Can I have logging saying that tMySQLInput ran successfully started on this and ended on this. Same thing for tMap and tMySQLOutput.

    • Hi Anket,
      You can use tFlowMeterCatcher and tStatCatcher to get the status of each component, and for log4j i would recommend you to use tJava it lightweight, if you have complex loging then go for tJavaFlex other wise tJava will do the best.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: