You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cascading-user
Hello,
I wanted to identify the last tuple in a User Define Operation (Especially Function). Currently I am unable to achieve this. So to achieve this functionality where do I need to make changes in source code?
Thanks in advance!
Regards,
Abhishek Korpe
Andre Kelpe
unread,
Aug 12, 2016, 11:46:52 AM8/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cascading-user
There is no global "last" tuple in your flow. The work is distributed
and multiple instances of the same function are running at the same
time in different JVMs.
If you just want to keep the last tuple in every function instance,
you could make the tuple a field that you overwrite in the Function
and then you overwrite the flush or cleanup method do do the thing you
want to do to the tuple.