Eric Y. Theriault
unread,May 19, 2013, 2:51:33 PM5/19/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cascadi...@googlegroups.com
Hi--
I'm trying to create a Pivot-like function in which the stream accepts a set of tuples and introduces new column names based on the input tuples. Effectively, I'm creating my own data structure based on the operate() input and when a flush() is invoked, it creates the necessary tuples and flows them through the OutputCollector.
Because it is dependent on the data, I don't have the tuple names upfront, so I can't initialize the fieldDeclarations properly in the constructor or the prepare() method. The Fields.UNKNOWN allows my function to work, except that the header field is lost. How can I get that header line in there? Is this even the best way to do this? Thanks for any pointers.
eyt*