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

ASF GitHub Bot commented on FLINK-6927:
---------------------------------------

Github user dianfu commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4153#discussion_r125173912
  
    --- Diff: 
flink-libraries/flink-cep/src/main/java/org/apache/flink/cep/pattern/Pattern.java
 ---
    @@ -430,6 +431,54 @@ public Quantifier getQuantifier() {
                return this;
        }
     
    +   /**
    +    * Starts a new pattern sequence. The provided pattern is the initial 
pattern
    +    * of the new sequence.
    +    *
    +    * @param group the pattern to begin with
    +    * @return the first pattern of a pattern sequence
    +    */
    +   public static <T, F extends T> GroupPattern<T, F> begin(Pattern<T, F> 
group) {
    +           return new GroupPattern<>(null, group);
    +   }
    +
    +   /**
    +    * Appends a new pattern to the existing one. The new pattern enforces 
non-strict
    --- End diff --
    
    done


> Support pattern group in CEP
> ----------------------------
>
>                 Key: FLINK-6927
>                 URL: https://issues.apache.org/jira/browse/FLINK-6927
>             Project: Flink
>          Issue Type: Sub-task
>          Components: CEP
>            Reporter: Dian Fu
>            Assignee: Dian Fu
>
> We should add support for pattern group. This would enrich the set of 
> supported patterns. For example, users can write patterns like this with this 
> feature available:
> {code}
>  A --> (B --> C.times(3)).optional() --> D
> {code}
> or
> {code}
> A --> (B --> C).times(3) --> D
> {code}



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

Reply via email to