You need to calculate the total number of rows in an input file using a tMlelnputDelimited component.
Which code should you use in a tJava component to write a nb-line variable?
You need to use the following code in a tJava component to write a nb_line variable:
int nb_line = (Integer)globalMap.get(''tFileInputDelimited_1_NB_LINE'');
This code retrieves the value of the global variable tFileInputDelimited_1_NB_LINE, which stores the number of rows processed by the tFileInputDelimited component, and assigns it to an integer variable named nb_line. You can then use this variable to print or manipulate the number of rows in your Job. Note that you need to use globalMap.get, not globalMap.put, to access the value of a global variable.
Thersa
4 days agoKami
9 days agoAlexis
14 days agoFrederick
19 days agoTitus
25 days agoSusana
30 days agoMerissa
1 month agoPa
2 months agoJulene
2 months agoJoni
2 months agoFausto
2 months agoGlory
3 months agoAlisha
3 months agoThea
3 months ago