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_r387438715
########## File path: docs/dev/libs/cep.zh.md ########## @@ -1537,14 +1493,14 @@ class MyPatternProcessFunction<IN, OUT> extends PatternProcessFunction<IN, OUT> } {% endhighlight %} -<span class="label label-info">Note</span> The `processTimedOutMatch` does not give one access to the main output. You can still emit results -through [side-outputs]({{ site.baseurl }}/dev/stream/side_output.html) though, through the `Context` object. +<span class="label label-info">Note</span> `processTimedOutMatch`不能访问主输出。 +但你可以通过`Context`对象把结果输出到[侧输出]({{ site.baseurl }}/zh/dev/stream/side_output.html)。 -#### Convenience API +#### 便捷的API -The aforementioned `PatternProcessFunction` was introduced in Flink 1.8 and since then it is the recommended way to interact with matches. -One can still use the old style API like `select`/`flatSelect`, which internally will be translated into a `PatternProcessFunction`. +前面提到的`PatternProcessFunction`是在Flink 1.8之后引入的,从那之后推荐使用这个接口来处理匹配到的结果。 +仍然可以使用像`select`/`flatSelect`这样旧格式的API,它们会在内部被转换为`PatternProcessFunction`。 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