Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-20474

flink cep results of doc is not right

    XMLWordPrintableJSON

    Details

      Description

      Contiguity within looping patterns

      You can apply the same contiguity condition as discussed in the previous section within a looping pattern. The contiguity will be applied between elements accepted into such a pattern. To illustrate the above with an example, a pattern sequence "a b+ c" ("a" followed by any(non-deterministic relaxed) sequence of one or more "b"’s followed by a "c") with input "a", "b1", "d1", "b2", "d2", "b3" "c" will have the following results:

      1. Strict Contiguity: {{ {a b3 c}}} – the "d1" after "b1" causes "b1" to be discarded, the same happens for "b2" because of "d2".

        # Relaxed Contiguity{a b1 c}{a b1 b2 c}{a b1 b2 b3 c}{a b2 c}{a b2 b3 c}, {{{a b3 c}

        }} - "d"’s are ignored.

      1. Non-Deterministic Relaxed Contiguity: {{ {a b1 c}

        }}, {{

        {a b1 b2 c}

        }}, {{

        {a b1 b3 c}}}, {a b1 b2 b3 c}{a b2 c}{a b2 b3 c}{a b3 c} - notice the {{{a b1 b3 c}

        }}, which is the result of relaxing contiguity between "b"’s.

       

       "a b+ c" ("a" followed by any(non-deterministic relaxed) sequence of one or more "b"’s followed by a "c") is not correct at followed by a "c". it is nexted by a "c"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jackylau jackylau
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: