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/05/11 11:37:04 UTC
[jira] [Closed] (FLINK-5853) Add consecutive event based filters
[ https://issues.apache.org/jira/browse/FLINK-5853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dawid Wysakowicz closed FLINK-5853.
-----------------------------------
Resolution: Duplicate
> 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)