use of org.apache.storm.tuple.TupleImpl in project heron by twitter.
the class OutputCollectorImpl method ack.
@Override
public void ack(Tuple input) {
TupleImpl i = (TupleImpl) input;
delegate.ack(i.getDelegate());
}
use of org.apache.storm.tuple.TupleImpl in project heron by twitter.
the class OutputCollectorImpl method fail.
@Override
public void fail(Tuple input) {
TupleImpl i = (TupleImpl) input;
delegate.fail(i.getDelegate());
}
use of org.apache.storm.tuple.TupleImpl in project storm by apache.
the class KafkaBoltTest method generateTestTuple.
private Tuple generateTestTuple(Object key, Object message) {
TopologyBuilder builder = new TopologyBuilder();
GeneralTopologyContext topologyContext = new GeneralTopologyContext(builder.createTopology(), new Config(), new HashMap<>(), new HashMap<>(), new HashMap<>(), "") {
@Override
public Fields getComponentOutputFields(String componentId, String streamId) {
return new Fields("key", "message");
}
};
return new TupleImpl(topologyContext, new Values(key, message), 1, "");
}
Aggregations