Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
pig スクリプトからの出力例:
(1, 10) (2, 100) (3,44) (4,99)
最終的には、Java UDF でヒストグラムを作成したいと考えています。これらすべてを一度に UDF に入力するにはどうすればよいですか?
UDF への入力としての複数のタプルは、タプルをバッグに入れ、それを入力として使用する場合にのみ機能します。最も簡単な方法は、グループ化を行い、結果のバッグを UDF の入力として使用することです。