Class EsIndexTopology.UserDataSpout

All Implemented Interfaces:
Serializable, ISpout, IComponent, IRichSpout
Enclosing class:
EsIndexTopology

public static class EsIndexTopology.UserDataSpout extends BaseRichSpout
The user data spout.
See Also:
  • Constructor Details

    • UserDataSpout

      public UserDataSpout()
  • Method Details

    • declareOutputFields

      public void declareOutputFields(OutputFieldsDeclarer declarer)
      Declares source, index, type and id.
      Parameters:
      declarer - the declarer to pass to
    • open

      public void open(Map<String,Object> config, TopologyContext context, SpoutOutputCollector collectorArg)
      Acquires collector and initializes pending.
      Parameters:
      config - unused
      context - unused
      collectorArg - the collector to acquire
    • nextTuple

      public void nextTuple()
      Makes the spout emit the next tuple, if any.
    • ack

      public void ack(Object msgId)
      Acknowledges the message with id msgId.
      Specified by:
      ack in interface ISpout
      Overrides:
      ack in class BaseRichSpout
      Parameters:
      msgId - the message id
    • fail

      public void fail(Object msgId)
      Marks the message with id msgId as failed.
      Specified by:
      fail in interface ISpout
      Overrides:
      fail in class BaseRichSpout
      Parameters:
      msgId - the message id