XBaith commented on a change in pull request #11808: [FLINK-16155][docs-zh]
Translate "Operator/Process Function" page into Chinese
URL: https://github.com/apache/flink/pull/11808#discussion_r410923646
##########
File path: docs/dev/stream/operators/process_function.zh.md
##########
@@ -26,66 +26,65 @@ under the License.
* This will be replaced by the TOC
{:toc}
-## The ProcessFunction
+## ProcessFunction简介
-The `ProcessFunction` is a low-level stream processing operation, giving
access to the basic building blocks of
-all (acyclic) streaming applications:
+`ProcessFunction` 是一种低级别的流处理操作,基于它用户可以访问所有(非循环)流应用程序的基本构建块:
- - events (stream elements)
- - state (fault-tolerant, consistent, only on keyed stream)
- - timers (event time and processing time, only on keyed stream)
+ -事件(流元素)
+ -状态(容错,一致行,仅在 keyed stream 上)
+ -计时器(事件时间和处理时间,仅在 keyed stream 上)
-The `ProcessFunction` can be thought of as a `FlatMapFunction` with access to
keyed state and timers. It handles events
-by being invoked for each event received in the input stream(s).
+可以将 `ProcessFunction` 视为一种可以访问 keyed state 和计时器的 `FlatMapFunction`。
+Flink 对每一个收到的元素调用调用这一函数。
Review comment:
1.该句子中出现重复两次“调用”
2.依我个人看来,或许用"它为输入流中收到的每个事件都调用该函数来处理事件"来描述更准确一些?
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services