Class WordCounter

All Implemented Interfaces:
Serializable, IBasicBolt, IComponent

public class WordCounter extends BaseBasicBolt
This bolt is used by the HBase example. It simply emits the first field found in the incoming tuple as "word", with a "count" of `1`.

In this case, the downstream HBase bolt handles the counting, so a value of `1` will just increment the HBase counter by one.

See Also:
  • Constructor Details

    • WordCounter

      public WordCounter()
  • Method Details