libenchao commented on a change in pull request #10822: 
[FLINK-15081][docs-zh]Translate "Concepts & Common API" page of Table…
URL: https://github.com/apache/flink/pull/10822#discussion_r386396321
 
 

 ##########
 File path: docs/dev/table/common.zh.md
 ##########
 @@ -1232,9 +1208,9 @@ val table: Table = tableEnv.fromDataStream(stream, 
'myLong)
 </div>
 </div>
 
-#### Tuples (Scala and Java) and Case Classes (Scala only)
+#### Tuple类型(Scala 和 Java)和 Case Class类型(仅 Scala)
 
-Flink supports Scala's built-in tuples and provides its own tuple classes for 
Java. DataStreams and DataSets of both kinds of tuples can be converted into 
tables. Fields can be renamed by providing names for all fields (mapping based 
on position). If no field names are specified, the default field names are 
used. If the original field names (`f0`, `f1`, ... for Flink Tuples and `_1`, 
`_2`, ... for Scala Tuples) are referenced, the API assumes that the mapping is 
name-based instead of position-based. Name-based mapping allows for reordering 
fields and projection with alias (`as`).
+Flink 支持 Scala 的内置 tuple 类型并给 Java 提供自己的 tuple 类型。两种 tuple 
的DataStream和DataSet都能被转换成表。可以通过提供所有字段名称来重命名字段(基于位置映射)。如果没有指明任何字段名称,则会使用默认的字段名称。如果引用了原始字段名称(对于
 Flink tuple 为`f0`、`f1` ... ...,对于 Scala tuple 为`_1`、`_2` ... ...),则 API 
会假定映射是基于名称的而不是基于位置的。基于名称的映射可以通过 `as` 对字段和投影进行重新排序。
 
 Review comment:
   add space around `DataStream` `DataSet`

----------------------------------------------------------------
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

Reply via email to