public static class ThroughputVsLatency.SplitSentence extends BaseBasicBolt
| Constructor and Description |
|---|
SplitSentence(SlowExecutorPattern slowness) |
| 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<String,Object> stormConf,
TopologyContext context) |
cleanupgetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic SplitSentence(SlowExecutorPattern slowness)
public void prepare(Map<String,Object> stormConf, TopologyContext context)
prepare in interface IBasicBoltprepare in class BaseBasicBoltpublic void execute(Tuple tuple, BasicOutputCollector collector)
IBasicBoltProcess 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)
IComponentDeclare 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 © 2021 The Apache Software Foundation. All rights reserved.