Search in sources :

Example 1 with CustomStreamGrouping

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);
}
Also used : CustomStreamGrouping(org.apache.heron.api.grouping.CustomStreamGrouping) TestBolt(org.apache.heron.resource.TestBolt)

Aggregations

CustomStreamGrouping (org.apache.heron.api.grouping.CustomStreamGrouping)1 TestBolt (org.apache.heron.resource.TestBolt)1