public class TestWordCounter extends BaseBasicBolt
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
TestWordCounter() |
Modifier and Type | Method and Description |
---|---|
void |
cleanup() |
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
void |
execute(Tuple input,
BasicOutputCollector collector)
Process the input tuple and optionally emit new tuples based on the input tuple.
|
protected String |
getTupleValue(Tuple t,
int idx) |
void |
prepare(Map stormConf,
TopologyContext context) |
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public void prepare(Map stormConf, TopologyContext context)
prepare
in interface IBasicBolt
prepare
in class BaseBasicBolt
public void execute(Tuple input, BasicOutputCollector collector)
IBasicBolt
public void cleanup()
cleanup
in interface IBasicBolt
cleanup
in class BaseBasicBolt
public void declareOutputFields(OutputFieldsDeclarer declarer)
IComponent
declarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streamCopyright © 2016 The Apache Software Foundation. All Rights Reserved.