use of org.wso2.siddhi.query.api.definition.AbstractDefinition in project siddhi by wso2.
the class SiddhiAppRuntimeBuilder method defineStream.
public void defineStream(StreamDefinition streamDefinition) {
DefinitionParserHelper.validateDefinition(streamDefinition, streamDefinitionMap, tableDefinitionMap, windowDefinitionMap, aggregationDefinitionMap);
AbstractDefinition currentDefinition = streamDefinitionMap.putIfAbsent(streamDefinition.getId(), streamDefinition);
if (currentDefinition != null) {
streamDefinition = (StreamDefinition) currentDefinition;
}
try {
DefinitionParserHelper.addStreamJunction(streamDefinition, streamJunctionMap, siddhiAppContext);
} catch (Throwable t) {
ExceptionUtil.populateQueryContext(t, streamDefinition, siddhiAppContext);
throw t;
}
DefinitionParserHelper.addEventSource(streamDefinition, sourceMap, siddhiAppContext);
DefinitionParserHelper.addEventSink(streamDefinition, sinkMap, siddhiAppContext);
}
Aggregations