Search in sources :

Example 1 with DoubleTuplesBolt

use of org.apache.heron.integration_test.common.bolt.DoubleTuplesBolt 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;
}
Also used : Fields(org.apache.heron.api.tuple.Fields) DoubleTuplesBolt(org.apache.heron.integration_test.common.bolt.DoubleTuplesBolt) ABSpout(org.apache.heron.integration_test.common.spout.ABSpout)

Aggregations

Fields (org.apache.heron.api.tuple.Fields)1 DoubleTuplesBolt (org.apache.heron.integration_test.common.bolt.DoubleTuplesBolt)1 ABSpout (org.apache.heron.integration_test.common.spout.ABSpout)1