public class CountingEmittingBolt extends backtype.storm.topology.base.BaseRichBolt
IBasicBolt
whose purpose is to increment a count on
the reciept of a tuple followed by an emit of the same tuple.Constructor and Description |
---|
CountingEmittingBolt(backtype.storm.tuple.Fields fields) |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer) |
void |
execute(backtype.storm.tuple.Tuple input) |
void |
prepare(Map stormConf,
backtype.storm.task.TopologyContext context,
backtype.storm.task.OutputCollector collector) |
public CountingEmittingBolt(backtype.storm.tuple.Fields fields)
fields
- the fields to expect and emitpublic void declareOutputFields(backtype.storm.topology.OutputFieldsDeclarer declarer)
public void prepare(Map stormConf, backtype.storm.task.TopologyContext context, backtype.storm.task.OutputCollector collector)
public void execute(backtype.storm.tuple.Tuple input)