Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Something other than tJava

0683p000009M4ZX.pngHi all - ,

 

im using tJava to count rows from the hive connection, and to create and insert into table, is there any ways to do it

Labels (3)
2 Replies
nfz11
Creator III
Creator III

Most components expose the NB_LINE variable that shows that total number of rows that flowed through that component during the execution of your job.  Could you use that to get your count?

int count = ((Integer)globalMap.get("tHiveRow_1_NB_LINE")).intValue
Anonymous
Not applicable
Author

Hi kkimpoy,

 

Instead of tJava component, you can also use tflowmeter component for counting the number of rows processed.

 

Place tflowmeter component in between two components where you feel you need to know the count, Then take tflowmetercatcher component from the pallette and connect it to tlogrow and you should be able to see the count in the output.

 

Don't forget to give kudos

 

Thanks & Regards,

Shafi Shaik