public class WordCounter extends Object implements IBasicBolt
| Constructor and Description |
|---|
WordCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
declareOutputFields(OutputFieldsDeclarer declarer) |
void |
execute(Tuple input,
BasicOutputCollector collector) |
Map<String,Object> |
getComponentConfiguration() |
void |
prepare(Map stormConf,
TopologyContext context) |
public void prepare(Map stormConf, TopologyContext context)
prepare in interface IBasicBoltpublic void execute(Tuple input, BasicOutputCollector collector)
execute in interface IBasicBoltpublic void cleanup()
cleanup in interface IBasicBoltpublic void declareOutputFields(OutputFieldsDeclarer declarer)
declareOutputFields in interface IComponentpublic Map<String,Object> getComponentConfiguration()
getComponentConfiguration in interface IComponentCopyright © 2018 The Apache Software Foundation. All Rights Reserved.