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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Agile Data lakes & Analytics

Accelerate your data lake projects with an agile approach

Watch