Database Reference
In-Depth Information
will be spawned at the time of submitting the topology. In our example, we will
have five instances of the spout.
setBolt : We use this method to add two bolts to the topology: SplitSen-
tenceBolt , which splits the sentence into words, and WordCountBolt ,
which counts the words.
• Other noteworthy items in the preceding code snippet are suffleGrouping
and fieldsGrouping ; we shall discuss these in detail in the next chapter; for
now, understand that these are the components that control routing of tuples to
various bolts in the topology.
Search WWH ::




Custom Search