use of com.twitter.heron.api.tuple.Fields in project heron by twitter.
the class IntegrationTestBolt method declareOutputFields.
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declareStream(Constants.INTEGRATION_TEST_CONTROL_STREAM_ID, new Fields(Constants.INTEGRATION_TEST_TERMINAL));
delegateBolt.declareOutputFields(outputFieldsDeclarer);
}
use of com.twitter.heron.api.tuple.Fields in project heron by twitter.
the class IntegrationTestSpout method declareOutputFields.
@Override
public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {
outputFieldsDeclarer.declareStream(Constants.INTEGRATION_TEST_CONTROL_STREAM_ID, new Fields(Constants.INTEGRATION_TEST_TERMINAL));
delegateSpout.declareOutputFields(outputFieldsDeclarer);
}
use of com.twitter.heron.api.tuple.Fields 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;
}
use of com.twitter.heron.api.tuple.Fields 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;
}
use of com.twitter.heron.api.tuple.Fields 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;
}
Aggregations