Question # 1 : I am working on a case scenario where we need to fuse data from multiple sensors [8 sensors for instance] and join them in a tree form. For example, joining [s1,s2,s3 s4] to form stream A and then [s5,s6,s7 and s8] to form Stream B and then perform CEP on stream A and B. How can I achieve this?
Question # 2 : Is it possible to perform CEP on multiple streams, means more than one stream ?. It is clearly mentioned in flink 1.3.2 API that pattern will be applied to one stream
DataStream<Event> input = ...
Pattern<Event, ?> pattern = ...
PatternStream<Event> patternStream = CEP.pattern(input, pattern);
If pattern can not be applied on more than one stream, then how will Flink CEP work with the classic example of CEP which involves smoke stream and temperature stream to create an alert when there is fire.
does joining both smoke and temp stream based on some key like the timestamp, is the only solution?
Then how can Flink be applied to broad use cases of IOT which involves multiple sensors?