use of org.apache.storm.generated.GlobalStreamId in project flink by apache.
the class StormTupleTest method testGetSourceGlobalStreamid.
@Test
public void testGetSourceGlobalStreamid() {
GlobalStreamId globalStreamid = new StormTuple<>(null, null, -1, "streamId", "componentID", null).getSourceGlobalStreamid();
Assert.assertEquals("streamId", globalStreamid.get_streamId());
Assert.assertEquals("componentID", globalStreamid.get_componentId());
}
use of org.apache.storm.generated.GlobalStreamId in project heron by twitter.
the class CustomStreamGroupingDelegate method prepare.
@Override
public void prepare(com.twitter.heron.api.topology.TopologyContext context, String component, String streamId, List<Integer> targetTasks) {
TopologyContext c = new TopologyContext(context);
GlobalStreamId g = new GlobalStreamId(component, streamId);
delegate.prepare(c, g, targetTasks);
}
Aggregations