Thanks guys, we decided it was better to parse the JSON, and then emit the tuple to one bolt or another. Then either bolt is only looking for one type of data.
On Fri, Dec 20, 2013 at 10:50 AM, Pablo Acuña <[email protected]> wrote: > Agreed, the overhead of parsing the JSON to check on the flag is just > too much. > > On 19/12/13 19:49, Nathan Leung wrote: > > Just add a field to your tuple. > > > On Thu, Dec 19, 2013 at 1:46 PM, Pete Carlson <[email protected]>wrote: > >> To clarify my question, my bolt is scanning JSON and if it finds a >> certain type I want to flag it so the next bolt downstream knows it has to >> do some processing. Otherwise, it just will pass the JSON through. >> >> >> On Thu, Dec 19, 2013 at 1:45 PM, Pete Carlson <[email protected]>wrote: >> >>> Hi All, >>> >>> Is there a way you can pass a flag with JSON in a bolt, so the next >>> bolt down stream knows it has to do some processing? >>> >>> If so, can you provide me an example? >>> >>> Or if there is another way to do this I'm open to ideas. >>> >>> Pete >>> >>> >>> >> >> >> -- >> Pete Carlson >> Software Developer >> Tetra Concepts LLC >> Cell: 301-526-0681 >> > > > -- Pete Carlson Software Developer Tetra Concepts LLC Cell: 301-526-0681
