Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How to compare and load data between two tables using talend, if I want to do the if/else to convert the kb/s to Mb/s how can I do that? After that, I have to take the higher value between the load_in & load_out column after the conversion. I'm very new to java & I need your help.
.-------+-------------+-------------+--------+--------+---------+---------.
| tLogRow_1 |
|=------+-------------+-------------+--------+--------+---------+--------=|
|site_id|load_in |load_out |loadin_A|loadin_B|loadout_A|loadout_B|
|=------+-------------+-------------+--------+--------+---------+--------=|
|8495A |3.13 Mb/s |22.82 Mb/s |3.13 |Mb/s |22.82 |Mb/s |
|8208B |65.61 kb/s |54.81 kb/s |65.61 |kb/s |54.81 |kb/s |
You could do this in few steps
When I insert this into the T-Map at the load in column;
If column contain Mb/s (check function INDEX)
Exception in component tMap_4 (TMNGBH_MAXXX)
java.lang.NumberFormatException: empty String
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.tHashInput_1Process(TMNGBH_MAXXX.java:4490)
at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.tFileInputExcel_1Process(TMNGBH_MAXXX.java:3428)
at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.runJobInTOS(TMNGBH_MAXXX.java:6575)
at leasedline.tmngbh_maxxx_0_1.TMNGBH_MAXXX.main(TMNGBH_MAXXX.java:6424)
I get this one. How can I remove the empty string. I have tried with treplace but it still shows this error.