public class TestConfBolt extends BaseBasicBolt
Constructor and Description |
---|
TestConfBolt() |
TestConfBolt(Map<String,Object> componentConf) |
Modifier and Type | Method and Description |
---|---|
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.
|
Map<String,Object> |
getComponentConfiguration()
Declare configuration specific to this component.
|
void |
prepare(Map<String,Object> conf,
TopologyContext context) |
cleanup
public void prepare(Map<String,Object> conf, TopologyContext context)
prepare
in interface IBasicBolt
prepare
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 streampublic void execute(Tuple input, BasicOutputCollector collector)
IBasicBolt
All acking is managed for you. Throw a FailedException if you want to fail the tuple.
public Map<String,Object> getComponentConfiguration()
IComponent
TopologyBuilder
getComponentConfiguration
in interface IComponent
getComponentConfiguration
in class BaseComponent
Copyright © 2023 The Apache Software Foundation. All rights reserved.