Thanks Allan I will try out the way you suggested. I found the GroupFunc at http://wiki.apache.org/pig/GroupFunction. I hope that helps.
On Tue, Nov 24, 2009 at 10:15 AM, Alan Gates <[email protected]> wrote: > Originally Pig had the concept of a GroupFunc, similar to EvalFunc and > FilterFunc. That was removed between 0.1 and 0.2. Where did you still find > this referenced in the documentation? We should remove it to avoid > confusion. > > You can group using a UDF to transform your group by key: > > A = load 'mydata'; > B = group A by myUDF($0); > ... > > myUDF needs to extend EvalFunc in this case. > > Alan. > > > On Nov 24, 2009, at 12:56 AM, dhaval deshpande wrote: > > Hi, >> i wanted to create a custom group function in pig. I was not sure >> where to start from. I check some documentation online but couldnt figure >> out. I also checked on wiki and it says I need to extend a abstract class >> GroupFunc. and when i try to do that it says GroupFunc class doesnt not >> exist. Please help me where do I start from. >> >> Thanks, >> Dhaval. >> > >
