public static class EsIndexTopology.UserDataSpout extends BaseRichSpout
| Constructor and Description |
|---|
UserDataSpout() |
| Modifier and Type | Method and Description |
|---|---|
void |
ack(Object msgId)
Acknowledges the message with id
msgId. |
void |
declareOutputFields(OutputFieldsDeclarer declarer)
Declares
source, index, type and id. |
void |
fail(Object msgId)
Marks the message with id
msgId as failed. |
void |
nextTuple()
Makes the spout emit the next tuple, if any.
|
void |
open(Map<String,Object> config,
TopologyContext context,
SpoutOutputCollector collectorArg)
Acquires
collector and initializes pending. |
activate, close, deactivategetComponentConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentConfigurationpublic void declareOutputFields(OutputFieldsDeclarer declarer)
source, index, type and id.declarer - the declarer to pass topublic void open(Map<String,Object> config, TopologyContext context, SpoutOutputCollector collectorArg)
collector and initializes pending.config - unusedcontext - unusedcollectorArg - the collector to acquirepublic void nextTuple()
public void ack(Object msgId)
msgId.ack in interface ISpoutack in class BaseRichSpoutmsgId - the message idpublic void fail(Object msgId)
msgId as failed.fail in interface ISpoutfail in class BaseRichSpoutmsgId - the message idCopyright © 2023 The Apache Software Foundation. All rights reserved.