public class LogInfoBolt extends BaseBasicBolt
Simple bolt that does nothing other than LOG.info() every tuple recieveed.
Constructor and Description |
---|
LogInfoBolt() |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
Declare the output schema for all the streams of this topology.
|
void |
execute(Tuple tuple,
BasicOutputCollector basicOutputCollector)
Process the input tuple and optionally emit new tuples based on the input tuple.
|
cleanup, prepare
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public void execute(Tuple tuple, BasicOutputCollector basicOutputCollector)
IBasicBolt
Process the input tuple and optionally emit new tuples based on the input tuple.
All acking is managed for you. Throw a FailedException if you want to fail the tuple.
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer)
IComponent
Declare the output schema for all the streams of this topology.
outputFieldsDeclarer
- this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streamCopyright © 2022 The Apache Software Foundation. All Rights Reserved.