Class IRichBoltDelegate

  • All Implemented Interfaces:
    Serializable, org.apache.heron.api.bolt.IBolt, org.apache.heron.api.bolt.IRichBolt, org.apache.heron.api.topology.IComponent, org.apache.heron.api.topology.IUpdatable

    public class IRichBoltDelegate
    extends Object
    implements org.apache.heron.api.bolt.IRichBolt, org.apache.heron.api.topology.IUpdatable
    When writing topologies using Java, IRichBolt and IRichSpout are the main interfaces to use to implement components of the topology.
    See Also:
    Serialized Form
    • Constructor Detail

      • IRichBoltDelegate

        public IRichBoltDelegate​(IRichBolt delegate)
    • Method Detail

      • prepare

        public void prepare​(Map<String,​Object> conf,
                            org.apache.heron.api.topology.TopologyContext context,
                            org.apache.heron.api.bolt.OutputCollector collector)
        Specified by:
        prepare in interface org.apache.heron.api.bolt.IBolt
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.apache.heron.api.bolt.IBolt
      • execute

        public void execute​(org.apache.heron.api.tuple.Tuple tuple)
        Specified by:
        execute in interface org.apache.heron.api.bolt.IBolt
      • declareOutputFields

        public void declareOutputFields​(org.apache.heron.api.topology.OutputFieldsDeclarer declarer)
        Specified by:
        declareOutputFields in interface org.apache.heron.api.topology.IComponent
      • getComponentConfiguration

        public Map<String,​Object> getComponentConfiguration()
        Specified by:
        getComponentConfiguration in interface org.apache.heron.api.topology.IComponent
      • update

        public void update​(org.apache.heron.api.topology.TopologyContext topologyContext)
        Specified by:
        update in interface org.apache.heron.api.topology.IUpdatable