We have a system which is designed for processing social media content. In our storm topology we have some bolts to process, such as sentiment analysis, language detection, spam detection and so on. All tutorials and examples prepared on storm, we have seen that a bolt can emit the tuple fields which has declared in declareOutputFields() methods. Is there any option to emit the current bolt's field with input tuple?
For example i have an input tuple which contains the fields below:
<
text : bla bla
username: paul
date: 01.01.2013
source:twitter
>
I want to define the output tuple as:
<
text : bla bla
username: paul
date: 01.01.2013
source:twitter
lang:tr
>
Note that i want my bolts don't need to know anything about before bolt's output tuple schema.
Thank you.