shuai-xu commented on a change in pull request #11168: [FLINK-16140] [docs-zh] 
Translate Event Processing (CEP) page into Chinese
URL: https://github.com/apache/flink/pull/11168#discussion_r387442283
 
 

 ##########
 File path: docs/dev/libs/cep.zh.md
 ##########
 @@ -736,41 +715,39 @@ Pattern<Event, ?> relaxedNot = 
start.notFollowedBy("not").where(...);
 <div data-lang="scala" markdown="1">
 {% highlight scala %}
 
-// strict contiguity
+// 严格连续
 val strict: Pattern[Event, _] = start.next("middle").where(...)
 
-// relaxed contiguity
+// 松散连续
 val relaxed: Pattern[Event, _] = start.followedBy("middle").where(...)
 
-// non-deterministic relaxed contiguity
+// 不确定的松散连续
 val nonDetermin: Pattern[Event, _] = start.followedByAny("middle").where(...)
 
-// NOT pattern with strict contiguity
+// 严格连续的NOT模式
 val strictNot: Pattern[Event, _] = start.notNext("not").where(...)
 
-// NOT pattern with relaxed contiguity
+// 松散连续的NOT模式
 val relaxedNot: Pattern[Event, _] = start.notFollowedBy("not").where(...)
 
 {% endhighlight %}
 </div>
 </div>
 
-Relaxed contiguity means that only the first succeeding matching event will be 
matched, while
-with non-deterministic relaxed contiguity, multiple matches will be emitted 
for the same beginning. As an example,
-a pattern `"a b"`, given the event sequence `"a", "c", "b1", "b2"`, will give 
the following results:
+松散连续意味着跟着的事件中,只有第一个可匹配的事件会被匹配上,而不确定的松散连接情况下,有着同样起始的多个匹配会被输出。
+举例来说,模式`"a b"`,给定事件序列`"a","c","b1","b2"`,会产生如下的结果:
 
-1. Strict Contiguity between `"a"` and `"b"`: `{}` (no match), the `"c"` after 
`"a"` causes `"a"` to be discarded.
+1. `"a"`和`"b"`之间严格连续: `{}` (没有匹配),`"a"`之后的`"c"`导致`"a"`被丢弃。
 
-2. Relaxed Contiguity between `"a"` and `"b"`: `{a b1}`, as relaxed continuity 
is viewed as "skip non-matching events
-till the next matching one".
+2. `"a"`和`"b"`之间松散连续: `{a b1}`,松散连续会"跳过不匹配的事件直到匹配上的事件"。
 
-3. Non-Deterministic Relaxed Contiguity between `"a"` and `"b"`: `{a b1}`, `{a 
b2}`, as this is the most general form.
+3. `"a"`和`"b"`之间不确定的松散连续: `{a b1}`, `{a b2}`,这是最常见的情况。
 
-It's also possible to define a temporal constraint for the pattern to be valid.
-For example, you can define that a pattern should occur within 10 seconds via 
the `pattern.within()` method.
-Temporal patterns are supported for both [processing and event 
time]({{site.baseurl}}/dev/event_time.html).
+也可以为模式定义一个有效时间约束。
+例如,你可以通过`pattern.within()`方法指定一个模式应该在10秒内发生。
+这种暂时的模式支持[处理时间和事件时间]({{site.baseurl}}/zh/dev/event_time.html).
 
 Review comment:
   叫时间模式吧,这个好像合适一点

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to