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

    https://github.com/apache/flink/pull/4153#discussion_r125005277
  
    --- 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 --
    
    I would update the docs, to put more stress that this method is used for 
appending a group pattern.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to