Search in sources :

Example 6 with IdentityBolt

use of org.apache.heron.integration_test.common.bolt.IdentityBolt in project heron by twitter.

the class BasicTopologyOneTask method buildTopology.

@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
    builder.setSpout("ab-spout", new ABSpout(true), 1);
    builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 2).shuffleGrouping("ab-spout");
    return builder;
}
Also used : IdentityBolt(org.apache.heron.integration_test.common.bolt.IdentityBolt) Fields(org.apache.heron.api.tuple.Fields) ABSpout(org.apache.heron.integration_test.common.spout.ABSpout)

Example 7 with IdentityBolt

use of org.apache.heron.integration_test.common.bolt.IdentityBolt in project heron by twitter.

the class OneSpoutMultiTasks method buildTopology.

@Override
protected TestTopologyBuilder buildTopology(TestTopologyBuilder builder) {
    builder.setSpout("ab-spout", new ABSpout(), 3);
    builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 1).shuffleGrouping("ab-spout");
    return builder;
}
Also used : IdentityBolt(org.apache.heron.integration_test.common.bolt.IdentityBolt) Fields(org.apache.heron.api.tuple.Fields) ABSpout(org.apache.heron.integration_test.common.spout.ABSpout)

Example 8 with IdentityBolt

use of org.apache.heron.integration_test.common.bolt.IdentityBolt in project heron by twitter.

the class BasicTopologyOneTask method buildTopology.

@Override
protected TopologyBuilder buildTopology(TopologyBuilder builder) {
    builder.setSpout("ab-spout", new ABSpout(true), 2);
    builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 3).shuffleGrouping("ab-spout");
    return builder;
}
Also used : IdentityBolt(org.apache.heron.integration_test.common.bolt.IdentityBolt) Fields(org.apache.heron.api.tuple.Fields) ABSpout(org.apache.heron.integration_test.common.spout.ABSpout)

Example 9 with IdentityBolt

use of org.apache.heron.integration_test.common.bolt.IdentityBolt in project heron by twitter.

the class BasicTopologyOneTask method buildTopology.

@Override
protected TopologyBuilder buildTopology(TopologyBuilder builder) {
    builder.setSpout("ab-spout", new ABSpout(true), 1);
    builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 3).shuffleGrouping("ab-spout");
    return builder;
}
Also used : IdentityBolt(org.apache.heron.integration_test.common.bolt.IdentityBolt) Fields(org.apache.heron.api.tuple.Fields) ABSpout(org.apache.heron.integration_test.common.spout.ABSpout)

Example 10 with IdentityBolt

use of org.apache.heron.integration_test.common.bolt.IdentityBolt in project heron by twitter.

the class BasicTopologyOneTask method buildTopology.

@Override
protected TopologyBuilder buildTopology(TopologyBuilder builder) {
    builder.setSpout("ab-spout", new ABSpout(true), 1);
    builder.setBolt("identity-bolt", new IdentityBolt(new Fields("word")), 2).shuffleGrouping("ab-spout");
    return builder;
}
Also used : IdentityBolt(org.apache.heron.integration_test.common.bolt.IdentityBolt) Fields(org.apache.heron.api.tuple.Fields) ABSpout(org.apache.heron.integration_test.common.spout.ABSpout)

Aggregations

Fields (org.apache.heron.api.tuple.Fields)13 IdentityBolt (org.apache.heron.integration_test.common.bolt.IdentityBolt)13 ABSpout (org.apache.heron.integration_test.common.spout.ABSpout)12 Config (org.apache.heron.api.Config)1 BasicConfig (org.apache.heron.integration_test.common.BasicConfig)1 PausedLocalFileSpout (org.apache.heron.integration_test.common.spout.PausedLocalFileSpout)1 TestTopologyBuilder (org.apache.heron.integration_test.core.TestTopologyBuilder)1