public static class EsIndexTopology.UserDataSpout extends BaseRichSpout
The user data spout.
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, deactivate
getComponentConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComponentConfiguration
public void declareOutputFields(OutputFieldsDeclarer declarer)
Declares source
, index
, type
and id
.
declarer
- the declarer to pass topublic void open(Map<String,Object> config, TopologyContext context, SpoutOutputCollector collectorArg)
Acquires collector
and initializes pending
.
config
- unusedcontext
- unusedcollectorArg
- the collector to acquirepublic void nextTuple()
Makes the spout emit the next tuple, if any.
public void ack(Object msgId)
Acknowledges the message with id msgId
.
ack
in interface ISpout
ack
in class BaseRichSpout
msgId
- the message idpublic void fail(Object msgId)
Marks the message with id msgId
as failed.
fail
in interface ISpout
fail
in class BaseRichSpout
msgId
- the message idCopyright © 2022 The Apache Software Foundation. All rights reserved.