Emitting Custom Object as Tuple from spout

2015-09-16 Thread Ankur Garg
Hi , I am new to apache Storm . To understand it I was looking at storm examples provided in the storm tutorial ( https://github.com/apache/storm/tree/master/examples/storm-starter) . In all the examples , we are emitting prmitive types (String,int etc) as Tuples . In my use case I am having

RE: Emitting Custom Object as Tuple from spout

2015-09-16 Thread Ziemer, Tom
– see http://storm.apache.org/documentation/Serialization.html Regards, Tom From: Ankur Garg [mailto:ankurga...@gmail.com] Sent: Mittwoch, 16. September 2015 15:37 To: user@storm.apache.org; d...@storm.apache.org Subject: Emitting Custom Object as Tuple from spout Hi , I am new to apache Storm

Re: Emitting Custom Object as Tuple from spout

2015-09-16 Thread Javier Gonzalez
You emit like this: collector.emit(new Values(yourBeanInstanceHere)); You just need to wrap it in a Values object. Regards, Javier. On Sep 16, 2015 9:37 AM, "Ankur Garg" wrote: > Hi , > > I am new to apache Storm . To understand it I was looking at storm > examples