Hi All, I saw Till's blog preparation. It will be a very helpful blog. I hope that some other blogs that explain how it works will come soon :-) I have a question on followedBy pattern matching semantic. From the documentation https://ci.apache.org/projects/flink/flink-docs-master/apis/streaming/libs/cep.html , <citaton> Non-strict contiguity means that other events are allowed to occur in-between two matching events. A non-strict contiguity pattern state can be created via the
</citation> I try to use Till's examples in the blog, to understand the semantic of followedBy -- First question. Say, I have sequence of temperatures in a time window that corresponds to the within clause (say in 20 minutes). TemperatureEvent(40) , OtherEvent(...), TemperatureEvent(30), TemperatureEvent(50), OtherEvent(...), TemperatureEvent(70), TemperatureEvent(65), TemperatureEvent(60) say I want to match two TemperatureEvents whose temperatures > 35. What will be the matches in this case ?
-- Second question. For next (and also for followedBy) , I have also questions regarding example above: Will TemperatureEvent(70), TemperatureEvent(65) and TemperatureEvent(65), TemperatureEvent(60) be returned , or the second pair is no longer returned because TemperatureEvent(65) has been used in the first pair ? Is there a way to define the different sequence semantics for the two questions I asked above ? Thanks, Anwar. |
Hi Anwar, yes, once we have published the introductory blog post about the CEP library, we will also publish a more in-depth description of the approach we have implemented. To spoil it a little bit: We have mainly followed the paper “Efficient Pattern Matching over Event Streams” for the implementation. Concerning your questions: 1.) 2.) The same applies here for the To make a long story short, there is currently no option to change the sequence semantics so that events are only part of one matching sequence. At the moment, events can participate in multiple matching sequences. I hope that answers your question Anwar. Cheers, On Mon, Apr 4, 2016 at 11:18 AM, Anwar Rizal <[hidden email]> wrote:
|
Thanks Till. The only way I can change the behavior would be to post filter the result then. Anwar. On Tue, Apr 5, 2016 at 11:41 AM, Till Rohrmann <[hidden email]> wrote:
|
Yes exactly. This is a feature which we still have to add. On Tue, Apr 5, 2016 at 1:07 PM, Anwar Rizal <[hidden email]> wrote:
|
Free forum by Nabble | Edit this page |