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

Dian Fu commented on FLINK-8147:
--------------------------------

Any comments is welcome. Do you think it's useful? What do you think the API 
should look like?

> Support and to CEP's pattern API
> --------------------------------
>
>                 Key: FLINK-8147
>                 URL: https://issues.apache.org/jira/browse/FLINK-8147
>             Project: Flink
>          Issue Type: Bug
>          Components: CEP
>            Reporter: Dian Fu
>
> Adding API such as {{and}} in CEP's pattern API will let us define patterns 
> like {{(A -> B) and (C -> D)}}.
> Its usage looks like
> {noformat}
> Pattern left = Pattern.begin("A").followedBy("B");
> Pattern right = Pattern.begin("C").followedBy("D");
> Pattern pattern = left.and(right)
> {noformat}
> If this makes sense, we should also support APIs such as {{or}} and {{not}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to