Sorry for the previous mail.Actually I wanted to ask how can I take 5 records at a time from the relation and perform the desired operation.Is it feasible to put each 5 tuple in a bag and then apply 'foreach' on the bags??If yes please let me now how can I achieve this.Or is there any better way to do this.I am new to pig so finding it a bit tricky.Many thanks.
Regards, Mohammad Tariq On Thu, May 17, 2012 at 1:44 PM, Mohammad Tariq <donta...@gmail.com> wrote: > Hello list, > > I have loaded data from an Hbase table and the relation looks like this - > > 18.98 2000 1.21 193.46 2.64 58.17 > � ��ȫ ������� �t 52.49 2000.5 4.32 947.11 2.74 64.45 > � ��ȫ ������� �h 115.24 2001 16.8 878.58 2.66 94.49 > � ��ȫ ������� �\ 55.55 2001.5 33.03 656.56 2.82 60.76 > � ��ȫ ������� �P 156.14 2002 35.52 83.75 2.6 59.57 > � ��ȫ ������� �D 138.77 2002.5 21.51 105.76 2.62 85.89 > � ��ȫ ������� �8 71.89 2003 27.79 709.01 2.63 85.44 > Regards, > Mohammad Tariq