public static class ThroughputVsLatency.FastRandomSentenceSpout extends LoadSpout
| Constructor and Description |
|---|
FastRandomSentenceSpout(long ratePerSecond)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declare the output schema for all the streams of this topology.
|
protected Values |
getNextValues(OutputStreamEngine se) |
activate, close, deactivategetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic FastRandomSentenceSpout(long ratePerSecond)
ratePerSecond - the rate to emite tuples at.protected Values getNextValues(OutputStreamEngine se)
getNextValues in class LoadSpoutpublic void declareOutputFields(OutputFieldsDeclarer declarer)
IComponentdeclareOutputFields in interface IComponentdeclareOutputFields in class LoadSpoutdeclarer - this is used to declare output stream ids, output fields, and whether or not each output stream is a direct streamCopyright © 2023 The Apache Software Foundation. All rights reserved.