Re: Converting storm tuple to bytearray

2017-03-21 Thread Arun Mahadevan
elevant values within the tuple. From: anshu shukla <anshushuk...@gmail.com> Reply-To: "user@storm.apache.org" <user@storm.apache.org> Date: Tuesday, March 21, 2017 at 8:40 AM To: "user@storm.apache.org" <user@storm.apache.org> Subject: Converting storm t

Re: Converting storm tuple to bytearray

2017-03-21 Thread anshu shukla
t; > > > > > *From: *anshu shukla <anshushuk...@gmail.com> > *Reply-To: *"user@storm.apache.org" <user@storm.apache.org> > *Date: *Tuesday, March 21, 2017 at 8:40 AM > *To: *"user@storm.apache.org" <user@storm.apache.org> > *Subject: *Conv

Re: Converting storm tuple to bytearray

2017-03-20 Thread Arun Mahadevan
. From: anshu shukla <anshushuk...@gmail.com> Reply-To: "user@storm.apache.org" <user@storm.apache.org> Date: Tuesday, March 21, 2017 at 8:40 AM To: "user@storm.apache.org" <user@storm.apache.org> Subject: Converting storm tuple to bytearray Hello,

Converting storm tuple to bytearray

2017-03-20 Thread anshu shukla
Hello, *1- Can anyone explain how to convert storm tuple to byte array. I have used the following code. * private byte[] convertToBytes(Object object) throws IOException { try (ByteArrayOutputStream bos = new ByteArrayOutputStream(); ObjectOutput out = new ObjectOutputStream(bos)) {