Get value from Row.Column

One Star

Get value from Row.Column

I try to get a value from a row. I thought it should work like: ((String)globalMap.get("rowX.XXCOLUMNNAMEXX"))
As shown in my example I try a simple print out from row2 like:
System.out.println(globalMap.get("row2.gln_orderedBy"));
Can anybody help me? Where is the error?
Thanks,
Robert
Community Manager

Re: Get value from Row.Column

In order to access data flow, should use tjavarow instead of tjava.
On tjavarow, you can access the column value like:
System.out.println(input_row.columnName);
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Get value from Row.Column

Hi,
I have a column having sum(spend) in tHash component. I want to find nth percentile value for that whole column. I have a java function getPercentile for percentile ready which takes (int k,float...values) as arguments. How can I pass all values in column sum(spend) to this function?
Thanks and regards,
Himani
Community Manager

Re: Get value from Row.Column

Hi Himani  
What are your input parameters of the java function, can you please show us the source code of function?
Regards
Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: Get value from Row.Column

I want to retrieve all the values of tJavaRow return by tFilter using tjava.
I already tried to put these row values into globalMap values but it returned only the values of last row.
If anyone know the solution please suggest me.