You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/08/10 02:35:35 UTC

[GitHub] [flink] XBaith commented on a change in pull request #13088: [FLINK-18814][docs-zh] Translate the 'Side Outputs' page of 'DataStream API' into Chinese

XBaith commented on a change in pull request #13088:
URL: https://github.com/apache/flink/pull/13088#discussion_r467664455



##########
File path: docs/dev/stream/side_output.zh.md
##########
@@ -110,17 +101,15 @@ val mainDataStream = input
       // emit data to regular output

Review comment:
       发送数据到主要的输出

##########
File path: docs/dev/stream/side_output.zh.md
##########
@@ -26,21 +26,15 @@ under the License.
 * This will be replaced by the TOC
 {:toc}
 
-In addition to the main stream that results from `DataStream` operations, you can also produce any
-number of additional side output result streams. The type of data in the result streams does not
-have to match the type of data in the main stream and the types of the different side outputs can
-also differ. This operation can be useful when you want to split a stream of data where you would
-normally have to replicate the stream and then filter out from each stream the data that you don't
-want to have.
+除了由 `DataStream` 操作产生的主要流之外,你还可以产生任意数量的旁路输出结果流。结果流中的数据类型不必与主要流中的数据类型相匹配,并且不同旁路输出的类型也可以不同。当你想要拆分数据流时,此操作非常有用,通常你必须复制数据流,然后从每个数据流中过滤掉你不想保留的数据。
 
-When using side outputs, you first need to define an `OutputTag` that will be used to identify a
-side output stream:
+使用旁路输出时,首先需要定义用于标识旁路输出流的 `OutputTag`:
 
 <div class="codetabs" markdown="1">
 <div data-lang="java" markdown="1">
 
 {% highlight java %}
-// this needs to be an anonymous inner class, so that we can analyze the type
+// 这需要是一个匿名的内部类,这样我们才能分析类型

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:
users@infra.apache.org