Search in sources :

Example 1 with StatefulIdentityBolt

use of org.apache.heron.integration_topology_test.common.bolt.StatefulIdentityBolt in project heron by twitter.

the class StatefulBasicTopologyOneTask method buildStatefulTopology.

@Override
protected TopologyTestTopologyBuilder buildStatefulTopology(TopologyTestTopologyBuilder builder) {
    builder.setSpout("stateful-ab-spout", new StatefulABSpout(true), 1);
    builder.setBolt("stateful-identity-bolt", new StatefulIdentityBolt(new Fields("word")), 3).shuffleGrouping("stateful-ab-spout");
    return builder;
}
Also used : StatefulABSpout(org.apache.heron.integration_topology_test.common.spout.StatefulABSpout) Fields(org.apache.heron.api.tuple.Fields) StatefulIdentityBolt(org.apache.heron.integration_topology_test.common.bolt.StatefulIdentityBolt)

Aggregations

Fields (org.apache.heron.api.tuple.Fields)1 StatefulIdentityBolt (org.apache.heron.integration_topology_test.common.bolt.StatefulIdentityBolt)1 StatefulABSpout (org.apache.heron.integration_topology_test.common.spout.StatefulABSpout)1