Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> Custom counters from Jython UDF function

Serega Sheypak 2013-07-30, 15:05
Copy link to this message
Re: Custom counters from Jython UDF function
Yes - take a look at PigCounterHelper.  Instantiate a variable of this
type, and then you can call the method incrCounter() on it:

_counter = PigCounterHelper()
_counter.incrCounter("Stats","Total sessions",1)


On Tue, Jul 30, 2013 at 11:05 AM, Serega Sheypak

> Hi, is there any possibility to have counters in Jython UDF?
> It works for Java, but I would like to use Jython.