YngwieWang commented on a change in pull request #9299: [FLINK-13405][docs-zh]
Translate "Basic API Concepts" page into Chinese
URL: https://github.com/apache/flink/pull/9299#discussion_r317597868
##########
File path: docs/dev/api_concepts.zh.md
##########
@@ -658,52 +565,52 @@ wordCounts.map(new MapFunction<Tuple2<String, Integer>,
Integer>() {
}
});
-wordCounts.keyBy(0); // also valid .keyBy("f0")
+wordCounts.keyBy(0); // .keyBy("f0") 也可以
{% endhighlight %}
</div>
<div data-lang="scala" markdown="1">
-Scala case classes (and Scala tuples which are a special case of case
classes), are composite types that contain a fixed number of fields with
various types. Tuple fields are addressed by their 1-offset names such as `_1`
for the first field. Case class fields are accessed by their name.
+Scala Case Classe (和指定 case 为 Case Class 的 Scala
Tuple)是复合类型,包含固定数量的各种类型的字段。Tuple 的字段从 1 开始索引。例如 `_1` 指第一个字段。Case Class 字段用名称索引。
Review comment:
谢谢,我对 scala 不了解。
----------------------------------------------------------------
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