fsk119 commented on a change in pull request #12758:
URL: https://github.com/apache/flink/pull/12758#discussion_r444677439
##########
File path: docs/dev/table/connectors/print.zh.md
##########
@@ -28,54 +28,54 @@ under the License.
* This will be replaced by the TOC
{:toc}
-The Print connector allows for writing every row to the standard output or
standard error stream.
+Print 连接器允许将每一行写入标准输出流或者标准错误流。
-It is designed for:
+设计目的:
-- Easy test for streaming job.
-- Very useful in production debugging.
+- 流处理的简易测试。
+- 非常方便实用的用于生产调试。
-Four possible format options:
+四种可能的输出内容选项:
<table class="table table-bordered">
<thead>
<tr>
- <th class="text-left" style="width: 40%">Print</th>
- <th class="text-center" style="width: 30%">Condition1</th>
- <th class="text-center" style="width: 30%">Condition2</th>
+ <th class="text-left" style="width: 40%">打印内容</th>
+ <th class="text-center" style="width: 30%">条件 1</th>
+ <th class="text-center" style="width: 30%">条件 2</th>
</tr>
</thead>
<tbody>
<tr>
- <td><h5>PRINT_IDENTIFIER:taskId> output</h5></td>
- <td>PRINT_IDENTIFIER provided</td>
+ <td><h5>标识符:任务 ID > 输出数据</h5></td>
+ <td>需要提供前缀打印标识符</td>
<td>parallelism > 1</td>
</tr>
<tr>
- <td><h5>PRINT_IDENTIFIER> output</h5></td>
- <td>PRINT_IDENTIFIER provided</td>
+ <td><h5>标识符> 输出数据</h5></td>
+ <td>需要提供前缀打印标识符</td>
<td>parallelism == 1</td>
</tr>
<tr>
- <td><h5>taskId> output</h5></td>
- <td>no PRINT_IDENTIFIER provided</td>
+ <td><h5>任务 ID > 输出数据</h5></td>
+ <td>不需要提供前缀打印标识符</td>
<td>parallelism > 1</td>
</tr>
<tr>
- <td><h5>output</h5></td>
- <td>no PRINT_IDENTIFIER provided</td>
+ <td><h5>输出数据</h5></td>
+ <td>不需要提供前缀打印标识符</td>
<td>parallelism == 1</td>
</tr>
</tbody>
</table>
-The output string format is "$row_kind(f0,f1,f2...)", row_kind is the short
string of [RowKind]({{ site.baseurl
}}/api/java/org/apache/flink/types/RowKind.html), example is: "+I(1,1)".
+输出字符串格式为 "$row_kind(f0,f1,f2...)",row_kind是一个[RowKind]({{ site.baseurl
}}/api/java/org/apache/flink/types/RowKind.html)类型的短字符串,例如:"+I(1,1)"。
-The Print connector is built-in.
+Print 连接器是内置的。
-<span class="label label-danger">Attention</span> Print sinks print records in
runtime tasks, you need to observe the task log.
+<span class="label label-danger">注意</span> 在任务运行时使用 Print Sinks
打印记录,你需要注意观察任务日志。
-How to create a Print table
+怎么创建一个 Print 的表
Review comment:
I think "如何创建一张基于Print 的表" is better.
----------------------------------------------------------------
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]