#1 2008-04-03 20:02:11

pegaz
Member
Registered: 2008-03-05
Posts: 34

tJava tArray

Tags: [java, tarray]

hi!

i'm trying to reach the rows that contains my tArray by  tJava component cuz i want to manipulate some rows on it.

my job is something like this:

tMysqlInput_1------------------->tArray_1
      |                    Main
      |
      |   OnSubjobOK
      |
      |
      |
      |
tArrayIn_1
      |
      |   Main
      |
      |
      |
  tJava_1   
 

what should i put in my tJava in order to reach the data that contains my tArray_1???


Regards.

Offline

#2 2008-04-08 07:53:57

shong
Talend team
Registered: 2007-08-29
Posts: 10354
Website

Re: tJava tArray

Hello

The tArray/tArrayIn/tSortIn are the virtual components. They are hidden in Talend by default. Go to Windows-->Preference-->Talend-->Designer and check the 'Display hidden components' option to display them.
In fact, tArray+tSortIn=tSortRow
tArray: store the data in memory without sorting them.
tArrayIn: read the data from memory without sorting them.
tSortIn: sort the data in memory and read them.
so, using tArray and tArrayIn in a job is useless.

Here comes a Perl scenario:

Input file:

2;shong
3;Elise
1;Mhirt
4;Plegall

Result:

Code:

Starting job HHH at 13:46 08/04/2008.
1|Mhirt
2|shong
3|Elise
4|Plegall
Job HHH ended at 13:46 08/04/2008. [exit code=0]

From this case, we can see that tArray+tSortIn=tSortRow.

Best regards

         shong


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2008-08-06 11:01:07

Jerry Preissler
Guest

Re: tJava tArray

shong wrote:

Hello

The tArray/tArrayIn/tSortIn are the virtual components. They are hidden in Talend by default. Go to Windows-->Preference-->Talend-->Designer and check the 'Display hidden components' option to display them.

Shong,

I'm trying to follow this hint in TOS Version: 2.4.0, Build id: r14858-20080606-1850. I can't find the option you mentioned. Did it move somewhere else?

Best regards
  Jerry

#4 2008-08-06 11:57:26

shong
Talend team
Registered: 2007-08-29
Posts: 10354
Website

Re: tJava tArray

Hello

Did it move somewhere else?

Yes, this option have been removed from Preference, you can add it from the 'project setting' panel. (see the screenshot)

Best regards

         shong


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#5 2012-09-18 16:32:27

scottroges
Guest

Re: tJava tArray

but how can you access the data stored in tArray using tJava?

Board footer

Powered by FluxBB