Updated on 2022-09-14 GMT+08:00

Development Idea

Function Decomposition

The procedure for a user to develop an application to calculate the number of times that each word appears in random text is as Table 1:

Table 1 Functions to be developed

No.

Procedure

Code Sample

1

Create a Spout to generate random text.

For details, see Creating a Spout.

2

Create a Bolt to split the random text into words.

For details, see Creating a Bolt.

3

Create a Blot to calculate the number of times that each word appears.

For details, see Creating a Bolt.

4

Create a Topology.

For details, see Creating a Topology.

For details about certain code, see Code Samples. For details about complete code, see the Storm-examples sample project.