You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Dawid Wysakowicz (JIRA)" <ji...@apache.org> on 2017/02/20 15:50:44 UTC
[jira] [Created] (FLINK-5853) Add consecutive event based filters
Dawid Wysakowicz created FLINK-5853:
---------------------------------------
Summary: Add consecutive event based filters
Key: FLINK-5853
URL: https://issues.apache.org/jira/browse/FLINK-5853
Project: Flink
Issue Type: New Feature
Components: CEP
Reporter: Dawid Wysakowicz
Priority: Minor
Support Patterns like:
{code}
Pattern<MonitoringEvent, ?> warningPattern = Pattern.<MonitoringEvent>begin("First Event")
.subtype(TemperatureEvent.class)
.next("Second Event")
.subtype(TemperatureEvent.class)
.where((firstEv, secondEv) -> firstEv.getTemperature() >= secondEv.getTemperature() + TEMPERATURE_THRESHOLD)
.within(Time.seconds(10));
{code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)