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.
Pa
5 days agoJulene
10 days agoJoni
15 days agoFausto
20 days agoGlory
25 days agoAlisha
1 month agoThea
1 month ago