In trunk this should be possible (it's possible in 0.10 as well, I just am not sure if PigCountersHelper is there). Either way, take a look at PigCountersHelper. All you have to do is instantiate a copy in your UDF and use it from there.
This hinges on all of the static stuff that Pig relies on working... I think that the way that we invoke these scripting languages should work, but this will verify that :) 2012/8/23 Duckworth, Will <[email protected]> > This may be a better question for the DEV list but ... Is it even possible > / feasible. Could it be done by calling the Java classes from within > Jython? > > I guess I would ask the same about algebraic and accumulator UDF which I > know are available in Ruby. > > -----Original Message----- > From: Aniket Mokashi [mailto:[email protected]] > Sent: Friday, August 17, 2012 5:54 PM > To: [email protected] > Subject: Re: Counters from Python UDF > > I dont think there is a way at this point. You may have to open a jira. > > Thanks, > Aniket > > On Fri, Aug 17, 2012 at 7:03 AM, Duckworth, Will <[email protected] > >wrote: > > > Has anyone poked around to see if there is there a way to create / > > increment counters from a Python UDFs? Thanks. > > > > > > > > Will Duckworth Senior Vice President, Software Engineering | comScore, > > Inc. (NASDAQ:SCOR) > > > > o +1 (703) 438-2108 | m +1 (301) 606-2977 | [email protected] > > <mailto:[email protected]> > > > > > > > ........................................................................................................... > > > > Introducing Mobile Metrix 2.0 - The next generation of mobile > > behavioral measurement www.comscore.com/MobileMetrix< > > http://www.comscore.com/Products_Services/Product_Index/Mobile_Metrix_ > > 2.0> > > > > > > > > > -- > "...:::Aniket:::... Quetzalco@tl" >
