Class HybridSpout

  • All Implemented Interfaces:
    EmptyQueueListener, Serializable, org.apache.storm.spout.ISpout, org.apache.storm.topology.IComponent, org.apache.storm.topology.IRichSpout, org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.SearchResponse>

    public class HybridSpout
    extends AggregationSpout
    implements EmptyQueueListener
    Uses collapsing spouts to get an initial set of URLs and keys to query for and gets emptyQueue notifications from the URLBuffer to query ES for a specific key.
    Since:
    1.15
    See Also:
    Serialized Form
    • Constructor Detail

      • HybridSpout

        public HybridSpout()
    • Method Detail

      • open

        public void open​(Map<String,​Object> stormConf,
                         org.apache.storm.task.TopologyContext context,
                         org.apache.storm.spout.SpoutOutputCollector collector)
        Specified by:
        open in interface org.apache.storm.spout.ISpout
        Overrides:
        open in class AggregationSpout
      • onResponse

        public void onResponse​(org.elasticsearch.action.search.SearchResponse response)
        Specified by:
        onResponse in interface org.elasticsearch.action.ActionListener<org.elasticsearch.action.search.SearchResponse>
        Overrides:
        onResponse in class AggregationSpout