use of org.apache.heron.integration_test.common.bolt.CountAggregatorBolt in project heron by twitter.
the class FieldsGrouping method buildTopology.
@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
builder.setSpout("ab-spout", new ABSpout(), 1, 400);
builder.setBolt("count-bolt", new WordCountBolt(), 2).fieldsGrouping("ab-spout", new Fields("word"));
builder.setBolt("sum-bolt", new CountAggregatorBolt(), 1).noneGrouping("count-bolt");
return builder;
}
use of org.apache.heron.integration_test.common.bolt.CountAggregatorBolt in project heron by twitter.
the class FieldsGrouping method buildTopology.
@Override
protected TopologyBuilder buildTopology(TopologyBuilder builder) {
builder.setSpout("ab-spout", new ABSpout(), 1);
builder.setBolt("count-bolt", new WordCountBolt(), 2).fieldsGrouping("ab-spout", new Fields("word"));
builder.setBolt("sum-bolt", new CountAggregatorBolt(), 1).noneGrouping("count-bolt");
return builder;
}
Aggregations