我有Pig生成的元组,其格式如下。
({(2018),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017)},{(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham),(Newham)},1131601)
({(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017),(2017)},{(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering),(Havering)},1047794)
我想简化为
(2018,Newham,1131601)
(2017,Havering,1047794)
我应该如何使用Apache Pig Latin?