You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Thorman (JIRA)" <ji...@apache.org> on 2016/06/16 19:30:05 UTC

[jira] [Commented] (FLINK-3319) Add or operator to CEP's pattern API

    [ https://issues.apache.org/jira/browse/FLINK-3319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15334509#comment-15334509 ] 

Robert Thorman commented on FLINK-3319:
---------------------------------------

Is this as simple as duplicating the AndFilterFunction<T> and implementing the filter as an OR?  If so, I'd be glad to work on this one and get familiar with flink-cep.

> Add or operator to CEP's pattern API
> ------------------------------------
>
>                 Key: FLINK-3319
>                 URL: https://issues.apache.org/jira/browse/FLINK-3319
>             Project: Flink
>          Issue Type: Improvement
>          Components: CEP
>    Affects Versions: 1.0.0
>            Reporter: Till Rohrmann
>            Priority: Minor
>
> Adding an {{or}} operator to CEP's pattern API would be beneficial. This would considerably extend the set of supported patterns. The {{or}} operator lets you define multiple succeeding pattern states for the next stage.
> {code}
> Pattern.begin("start").next("middle1").where(...).or("middle2").where(...)
> {code}
> In order to implement the {{or}} operator, one has to extend the {{Pattern}} class. Furthermore, the {{NFACompiler}} has to be extended to generate two resulting pattern states in case of an {{or}} operator.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)