klion26 commented on a change in pull request #9188: [FLINK-12940][docs-zh] Translate Apache Cassandra Connector page into… URL: https://github.com/apache/flink/pull/9188#discussion_r305619521
########## File path: docs/dev/connectors/cassandra.zh.md ########## @@ -201,10 +192,10 @@ result.print().setParallelism(1) </div> -### Cassandra Sink Example for Streaming POJO Data Type -An example of streaming a POJO data type and store the same POJO entity back to Cassandra. In addition, this POJO implementation needs to follow [DataStax Java Driver Manual](http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/) to annotate the class as each field of this entity is mapped to an associated column of the designated table using the DataStax Java Driver `com.datastax.driver.mapping.Mapper` class. +### 用于流式传输 POJO 数据类型的 Cassandra Sink 示例 +流式传输 POJO 数据类型并将相同的 POJO 实体存储回 Cassandra 的示例。此外,此 POJO 实现需要遵循[DataStax Java 驱动程序手册](http://docs.datastax.com/en/developer/java-driver/2.1/manual/object_mapper/creating/)来注释每个字段的类使用 DataStax Java 驱动程序 `com.datastax.driver.mapping.Mapper` 类将此实体映射到指定表的关联列。 -The mapping of each table column can be defined through annotations placed on a field declaration in the Pojo class. For details of the mapping, please refer to CQL documentation on [Definition of Mapped Classes](http://docs.datastax.com/en/developer/java-driver/3.1/manual/object_mapper/creating/) and [CQL Data types](https://docs.datastax.com/en/cql/3.1/cql/cql_reference/cql_data_types_c.html) +可以通过放置在 Pojo 类中的字段声明上的注释来定义每个表列的映射。有关映射的详细信息,请参阅[映射类的定义](http://docs.datastax.com/en/developer/java-driver/3.1/manual/object_mapper/creating/)和[CQL Data types](https://docs.datastax.com/en/cql/3.1/cql/cql_reference/cql_data_types_c.html)。 Review comment: ```suggestion 可以通过放置在 Pojo 类中的字段声明上的注释来定义每个表列的映射。有关映射的详细信息,请参阅[映射类的定义](http://docs.datastax.com/en/developer/java-driver/3.1/manual/object_mapper/creating/)和 [CQL Data types](https://docs.datastax.com/en/cql/3.1/cql/cql_reference/cql_data_types_c.html)。 ``` ---------------------------------------------------------------- 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
