PatrickRen commented on a change in pull request #11151:
[FLINK-16128][docs]Translate "Google Cloud PubSub" page into Chinese
URL: https://github.com/apache/flink/pull/11151#discussion_r383102874
##########
File path: docs/dev/connectors/pubsub.zh.md
##########
@@ -39,24 +37,17 @@ following dependency to your project:
<b>Note</b>: This connector has been added to Flink recently. It has not
received widespread testing yet.
</p>
-Note that the streaming connectors are currently not part of the binary
-distribution. See
-[here]({{ site.baseurl }}/dev/projectsetup/dependencies.html)
-for information about how to package the program with the libraries for
-cluster execution.
-
-
+注意连接器目前还不是二进制发行版的一部分,添加依赖、打包配置以及集群运行信息请参考[这里]({{ site.baseurl
}}/dev/projectsetup/dependencies.html)
## Consuming or Producing PubSubMessages
-The connector provides a connectors for receiving and sending messages from
and to Google PubSub.
-Google PubSub has an `at-least-once` guarantee and as such the connector
delivers the same guarantees.
+连接器可以接收和发送 Google PubSub 的信息。和 Google PubSub 一样,这个连接器能够保证`至少一次`的语义。
### PubSub SourceFunction
-The class `PubSubSource` has a builder to create PubSubsources:
`PubSubSource.newBuilder(...)`
+`PubSubSource` 类的对象由构建类来构建: `PubSubSource.newBuilder(...)`
-There are several optional methods to alter how the PubSubSource is created,
the bare minimum is to provide a Google project, Pubsub subscription and a way
to deserialize the PubSubMessages.
+除了 Google project,Pubsub subscription 和反序列化 PubSubMessage的方法是必须的,你有多种可选的方法来创建
PubSubSource。
Review comment:
I think it's better to be:
有多种可选的方法来创建 PubSubSource,但最低要求是要提供 Google Project、Pubsub 订阅和反序列化
PubSubMessages 的方法。
----------------------------------------------------------------
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