use of com.twitter.heron.streamlet.impl.ContextImpl in project incubator-heron by apache.
the class ComplexSource method open.
@SuppressWarnings("rawtypes")
@Override
public void open(Map<String, Object> map, TopologyContext topologyContext, SpoutOutputCollector outputCollector) {
collector = outputCollector;
Context context = new ContextImpl(topologyContext, map, state);
generator.setup(context);
}
use of com.twitter.heron.streamlet.impl.ContextImpl in project incubator-heron by apache.
the class TransformOperator method prepare.
@SuppressWarnings("rawtypes")
@Override
public void prepare(Map<String, Object> map, TopologyContext topologyContext, OutputCollector outputCollector) {
collector = outputCollector;
Context context = new ContextImpl(topologyContext, map, state);
serializableTransformer.setup(context);
}
use of com.twitter.heron.streamlet.impl.ContextImpl in project incubator-heron by apache.
the class ComplexSink method prepare.
@SuppressWarnings("rawtypes")
@Override
public void prepare(Map<String, Object> map, TopologyContext topologyContext, OutputCollector outputCollector) {
this.collector = outputCollector;
Context context = new ContextImpl(topologyContext, map, state);
sink.setup(context);
}
Aggregations