klion26 commented on a change in pull request #9097: [FLINK-11529][docs-zh]
Translate the "DataStream API Tutorial" page into Chinese
URL: https://github.com/apache/flink/pull/9097#discussion_r303226491
##########
File path: docs/getting-started/tutorials/datastream_api.zh.md
##########
@@ -203,26 +180,20 @@ DataStream<Tuple2<String, Long>> result = keyedEdits
});
{% endhighlight %}
-The first call, `.timeWindow()`, specifies that we want to have tumbling
(non-overlapping) windows
-of five seconds. The second call specifies a *Aggregate transformation* on
each window slice for
-each unique key. In our case we start from an initial value of `("", 0L)` and
add to it the byte
-difference of every edit in that time window for a user. The resulting Stream
now contains
-a `Tuple2<String, Long>` for every user which gets emitted every five seconds.
+首先调用 `.timeWindow()` 方法指定五秒翻滚(非重叠)窗口。第二个调用方法对于每一个唯一关键字指定每个窗口片`聚合转换`。
+在本例中,我们从`("",0L)`初始值开始,并将每个用户编辑的字节添加到该时间窗口中。对于每个用户来说,结果流现在包含的元素为
`Tuple2<String, Long>`,它每5秒发出一次。
-The only thing left to do is print the stream to the console and start
execution:
+唯一剩下要做的就是将打印流输出到控制台并开始执行:
Review comment:
```suggestion
唯一剩下的就是将结果输出到控制台并开始执行:
```
----------------------------------------------------------------
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