use of org.apache.heron.streamlet.Context in project heron by twitter.
the class ComplexSource method open.
@SuppressWarnings("rawtypes")
@Override
public void open(Map<String, Object> map, TopologyContext topologyContext, SpoutOutputCollector outputCollector) {
super.open(map, topologyContext, outputCollector);
Context context = new ContextImpl(topologyContext, map, state);
generator.setup(context);
}
use of org.apache.heron.streamlet.Context in project heron by twitter.
the class TransformOperator method prepare.
@SuppressWarnings("rawtypes")
@Override
public void prepare(Map<String, Object> map, TopologyContext topologyContext, OutputCollector outputCollector) {
super.prepare(map, topologyContext, outputCollector);
Context context = new ContextImpl(topologyContext, map, state);
serializableTransformer.setup(context);
}
use of org.apache.heron.streamlet.Context in project heron by twitter.
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