public class PrepareRequest extends BaseBasicBolt
Modifier and Type | Field and Description |
---|---|
static String |
ARGS_STREAM |
static String |
ID_STREAM |
static String |
RETURN_STREAM |
Constructor and Description |
---|
PrepareRequest() |
Modifier and Type | Method and Description |
---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
void |
execute(Tuple tuple,
BasicOutputCollector collector)
Process the input tuple and optionally emit new tuples based on the input tuple.
|
void |
prepare(Map map,
TopologyContext context) |
cleanup
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public static final String ARGS_STREAM
public static final String RETURN_STREAM
public static final String ID_STREAM
public void prepare(Map map, TopologyContext context)
prepare
in interface IBasicBolt
prepare
in class BaseBasicBolt
public void execute(Tuple tuple, BasicOutputCollector collector)
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 declarer)
IComponent
Declare the output schema for all the streams of this topology.
declarer
- 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.