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_r387435594
 
 

 ##########
 File path: docs/dev/libs/cep.zh.md
 ##########
 @@ -1750,31 +1704,25 @@ val alerts = patternStream.select(createAlert(_))
 </div>
 </div>
 
-## Migrating from an older Flink version(pre 1.3)
+## 从旧版本迁移(1.3之前)
 
-### Migrating to 1.4+
+### 迁移到1.4+
 
-In Flink-1.4 the backward compatibility of CEP library with <= Flink 1.2 was 
dropped. Unfortunately 
-it is not possible to restore a CEP job that was once run with 1.2.x
+在Flink-1.4放弃了和<= Flink 1.2版本的兼容性。很不幸,不能再恢复用1.2.x运行过的CEP作业。
 
-### Migrating to 1.3.x
+### 迁移到1.3.x
 
-The CEP library in Flink-1.3 ships with a number of new features which have 
led to some changes in the API. Here we
-describe the changes that you need to make to your old CEP jobs, in order to 
be able to run them with Flink-1.3. After
-making these changes and recompiling your job, you will be able to resume its 
execution from a savepoint taken with the
-old version of your job, *i.e.* without having to re-process your past data.
+CEP库在Flink-1.3发布的一系列的新特性引入了一些API上的修改。这里我们描述你需要对旧的CEP作业所做的修改,以能够用Flink-1.3来运行它们。
+在做完这些修改并重新编译你的作业之后,可以从旧版本作业的保存点之后继续运行,*也就是说*不需要再重新处理旧的数据。
 
-The changes required are:
+需要的修改是:
 
-1. Change your conditions (the ones in the `where(...)` clause) to extend the 
`SimpleCondition` class instead of
-implementing the `FilterFunction` interface.
+1. 修改你的条件(在`where(...)`语句中的)来继承`SimpleCondition`类而不是实现`FilterFunction`接口。
 
-2. Change your functions provided as arguments to the `select(...)` and 
`flatSelect(...)` methods to expect a list of
-events associated with each pattern (`List` in `Java`, `Iterable` in `Scala`). 
This is because with the addition of
-the looping patterns, multiple input events can match a single (looping) 
pattern.
+2. 
修改你作为`select(...)`和`flatSelect(...)`方法的参数的函数为期望每个模式关联一个事件列表(`Java`中`List`,`Scala`中`Iterable`)。
+这是因为增加了循环模式后,多个事件可能匹配一个单一的(循环)模式。
 
-3. The `followedBy()` in Flink 1.1 and 1.2 implied `non-deterministic relaxed 
contiguity` (see
-[here](#conditions-on-contiguity)). In Flink 1.3 this has changed and 
`followedBy()` implies `relaxed contiguity`,
-while `followedByAny()` should be used if `non-deterministic relaxed 
contiguity` is required.
+3. 在Flink 1.1和1.2中,`followedBy()` in Flink 1.1 and 1.2隐含了`不确定的松散连续` 
(参见[这里](#组合模式))。
 
 Review comment:
   done

----------------------------------------------------------------
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