Github user alpinegizmo commented on a diff in the pull request:
https://github.com/apache/flink/pull/4041#discussion_r119888143
--- Diff: docs/dev/libs/cep.md ---
@@ -341,153 +765,67 @@ Pattern<Event, ?> start =
Pattern.<Event>begin("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 java %}
-Pattern<Event, ?> next = start.next("next");
+Pattern<Event, ?> 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 java %}
-Pattern<Event, ?> followedBy = start.followedBy("next");
+Pattern<Event, ?> followedBy = start.followedBy("middle");
{% endhighlight %}
</td>
</tr>
<tr>
- <td><strong>Where</strong></td>
+ <td><strong>followedByAny()</strong></td>
<td>
- <p>Defines a condition for the current pattern state. Only
if an event satisifes the condition, it can match the state:</p>
+ <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 ...
---
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.
---