use of org.apache.heron.api.grouping.CustomStreamGrouping in project heron by twitter.
the class CustomGroupingTest method initBoltA.
@Override
protected void initBoltA(TopologyBuilder topologyBuilder, String boltId, String upstreamComponentId) {
final CustomStreamGrouping myCustomGrouping = new MyRoundRobinCustomGrouping(getInitInfoKey(upstreamComponentId));
topologyBuilder.setBolt(boltId, new TestBolt(), 1).customGrouping(upstreamComponentId, myCustomGrouping);
}
Aggregations