Class AbstractRankerBolt

    • Constructor Detail

      • AbstractRankerBolt

        public AbstractRankerBolt()
      • AbstractRankerBolt

        public AbstractRankerBolt​(int topN)
      • AbstractRankerBolt

        public AbstractRankerBolt​(int topN,
                                  int emitFrequencyInSeconds)
    • Method Detail

      • getRankings

        protected Rankings getRankings()
      • execute

        public final void execute​(Tuple tuple,
                                  BasicOutputCollector collector)
        This method functions as a template method (design pattern).
      • declareOutputFields

        public void declareOutputFields​(OutputFieldsDeclarer declarer)
        Description copied from interface: IComponent
        Declare the output schema for all the streams of this topology.
        Parameters:
        declarer - this is used to declare output stream ids, output fields, and whether or not each output stream is a direct stream