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:
    Serialized Form
    • Constructor Detail

      • WordCounter

        public WordCounter()