klion26 commented on a change in pull request #12442:
URL: https://github.com/apache/flink/pull/12442#discussion_r439922178
##########
File path: docs/dev/event_time.zh.md
##########
@@ -24,40 +24,22 @@ specific language governing permissions and limitations
under the License.
-->
-In this section you will learn about writing time-aware Flink programs. Please
-take a look at [Timely Stream Processing]({% link
-concepts/timely-stream-processing.zh.md %}) to learn about the concepts behind
-timely stream processing.
+本节你将学到如何写可感知时间变化的 Flink 程序,可以先看看[实时流处理]({% link
concepts/timely-stream-processing.zh.md %})了解相关概念。
-For information about how to use time in Flink programs refer to
-[windowing]({% link dev/stream/operators/windows.zh.md %}) and
-[ProcessFunction]({% link
-dev/stream/operators/process_function.zh.md %}).
+想了解如何在 Flink 程序中使用时间特性,请参阅[窗口]({% link dev/stream/operators/windows.zh.md
%})和[处理函数]({% link dev/stream/operators/process_function.zh.md %})。
-* toc
-{:toc}
+使用*事件时间*进行流处理的先决条件是设置合适的*时间特性*,该设置定义了数据流的行为方式(例如,是否分配时间戳),以及窗口算子使用哪种时间概念,例如
`KeyedStream.timeWindow(Time.seconds(30))` 。
Review comment:
这里和下面的也有类似的问题(不是说翻译的问题),而是 review 起来会稍微有点麻烦,这里可以分为两步(两个 commit)
- 同步英文版
- 翻译
这样 review 的时候可以看单个 commit 的 diff 会更方便一点。
另外这个 commit 进去之后,建议再提一个 hotfix commit 把 python 代码给修改下(python 代码现在和
java/scala 代码不同步,还是设置的 ProcessingTime,提了之后可以 at 我)
----------------------------------------------------------------
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]