One Star

tJava 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.
5 REPLIES
Community Manager

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 scenario:
Input file:
2;shong
3;Elise
1;Mhirt
4;Plegall
Result:

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.


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

----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

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.

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
Community Manager

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
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: tJava tArray

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

Re: tJava tArray

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

Exactly my question as well.