Actually i was wrong on the UDF point. By variables i meant the
information that is encoded in the scope, like the subtask index, task
name, taskmanager ID etc., however all these can be accessed from the
MetricGroup that is returned by RuntimeContext#getMetricGroup(), which
you can of course
Thank you Chesnay. Good to know there are few wrappers available to get
best of both worlds. I may mostly go without piggybacking though to have
more control and learning for now, but I will keep an eye for new benefits
I will get in future via piggybacking.
The UDF point looks like a deal