Github user alpinegizmo commented on a diff in the pull request:
https://github.com/apache/flink/pull/4041#discussion_r119887736
--- Diff: docs/dev/libs/cep.md ---
@@ -511,133 +849,81 @@ val start = Pattern.begin[Event]("start")
</td>
</tr>
<tr>
- <td><strong>Next</strong></td>
+ <td><strong>next()</strong></td>
<td>
- <p>Appends a new pattern state. A matching event has to
directly succeed the previous matching event:</p>
+ <p>Appends a new pattern state. A matching event has to
directly succeed the previous matching event
+ (strict contiguity):</p>
{% highlight scala %}
val next = start.next("middle")
{% endhighlight %}
</td>
</tr>
<tr>
- <td><strong>FollowedBy</strong></td>
+ <td><strong>followedBy()</strong></td>
<td>
- <p>Appends a new pattern state. Other events can occur
between a matching event and the previous matching event:</p>
+ <p>Appends a new pattern state. Other events can occur
between a matching event and the previous
+ matching event (relaxed contiguity) :</p>
{% highlight scala %}
val followedBy = start.followedBy("middle")
{% endhighlight %}
</td>
</tr>
<tr>
- <td><strong>Where</strong></td>
- <td>
- <p>Defines a filter condition for the current pattern
state. Only if an event passes the filter, it can match the state:</p>
-{% highlight scala %}
-patternState.where(event => ... /* some condition */)
-{% endhighlight %}
- </td>
- </tr>
- <tr>
- <td><strong>Or</strong></td>
- <td>
- <p>Adds a new filter condition which is ORed with an
existing filter condition. Only if an event passes the filter condition, it can
match the state:</p>
-{% highlight scala %}
-patternState.where(event => ... /* some condition */)
- .or(event => ... /* alternative condition */)
-{% endhighlight %}
- </td>
+ <td><strong>followedByAny()</strong></td>
+ <td>
+ <p>Appends a new pattern state. Other events can
occur between a matching event and the previous
+ matching event and alternative matches will be
presented for every alternative matching event
--- End diff --
add a comma:
... matching event, and alternative matches will be ...
---
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 [email protected] or file a JIRA ticket
with INFRA.
---