O'Reilly logo

Talend Open Studio Cookbook by Rick Barton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using tJavaRow to display row information

Although tLogRow is flexible and very useful, it does have some limitations, in that it only prints what is defined in a schema. tJavaRow doesn't have the same limitations. This recipe will show you how it can be utilized.

Getting ready

Open the jo_cook_ch10_0060_tJavaRow job.

How to do it...

The steps for using tJavaRow to display row information are as follows:

  1. Run the job. You will see data in the console output sorted by customer key.
  2. Remove the tLogRow component, and add a tJavaRow component in its place.
  3. Open the tJavaRow component and add the following code:
    //Test for change of key and print heading lines if key has changed if (Numeric.sequence(input_row.name, 1, 1) == 1){ System.out.println("\n\n******************** ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required