use of org.apache.heron.integration_test.common.spout.ABSpout in project heron by twitter.
the class AllGrouping method buildTopology.
@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
builder.setSpout("ab-spout", new ABSpout(), 1);
builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 2).allGrouping("ab-spout");
return builder;
}
use of org.apache.heron.integration_test.common.spout.ABSpout in project heron by twitter.
the class BoltDoubleEmitTuples method buildTopology.
@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
builder.setSpout("ab-spout", new ABSpout(), 1);
builder.setBolt("double-tuples-bolt", new DoubleTuplesBolt(new Fields("word")), 1).shuffleGrouping("ab-spout");
return builder;
}
use of org.apache.heron.integration_test.common.spout.ABSpout in project heron by twitter.
the class GlobalGrouping method buildTopology.
@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
builder.setSpout("ab-spout", new ABSpout(), 1);
builder.setBolt("count-bolt", new WordCountBolt(), 3).globalGrouping("ab-spout");
return builder;
}
use of org.apache.heron.integration_test.common.spout.ABSpout in project heron by twitter.
the class NonGrouping method buildTopology.
@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
builder.setSpout("ab-spout", new ABSpout(), 1);
builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 3).noneGrouping("ab-spout");
return builder;
}
use of org.apache.heron.integration_test.common.spout.ABSpout in project heron by twitter.
the class OneSpoutBoltMultiTasks method buildTopology.
@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
builder.setSpout("ab-spout", new ABSpout(), 3);
builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 3).shuffleGrouping("ab-spout");
return builder;
}
Aggregations