Search in sources :

Example 16 with ABSpout

use of org.apache.heron.integration_test.common.spout.ABSpout in project heron by twitter.

the class OneSpoutTwoBolts method buildTopology.

@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
    builder.setSpout("ab-spout", new ABSpout(), 1);
    builder.setBolt("identity-bolt-1", new IdentityBolt(new Fields("word")), 1).shuffleGrouping("ab-spout");
    builder.setBolt("identity-bolt-2", new IdentityBolt(new Fields("word")), 1).shuffleGrouping("ab-spout");
    return builder;
}
Also used : IdentityBolt(org.apache.heron.integration_test.common.bolt.IdentityBolt) Fields(org.apache.heron.api.tuple.Fields) ABSpout(org.apache.heron.integration_test.common.spout.ABSpout)

Aggregations

ABSpout (org.apache.heron.integration_test.common.spout.ABSpout)16 Fields (org.apache.heron.api.tuple.Fields)15 IdentityBolt (org.apache.heron.integration_test.common.bolt.IdentityBolt)12 WordCountBolt (org.apache.heron.integration_test.common.bolt.WordCountBolt)3 CountAggregatorBolt (org.apache.heron.integration_test.common.bolt.CountAggregatorBolt)2 DoubleTuplesBolt (org.apache.heron.integration_test.common.bolt.DoubleTuplesBolt)1