klion26 commented on a change in pull request #13225:
URL: https://github.com/apache/flink/pull/13225#discussion_r489984016



##########
File path: docs/dev/user_defined_functions.zh.md
##########
@@ -147,95 +153,78 @@ data.map (new RichMapFunction[String, Int] {
 
 </div>
 
-Rich functions provide, in addition to the user-defined function (map,
-reduce, etc), four methods: `open`, `close`, `getRuntimeContext`, and
-`setRuntimeContext`. These are useful for parameterizing the function
-(see [Passing Parameters to Functions]({{ site.baseurl 
}}/dev/batch/index.html#passing-parameters-to-functions)),
-creating and finalizing local state, accessing broadcast variables (see
-[Broadcast Variables]({{ site.baseurl 
}}/dev/batch/index.html#broadcast-variables)), and for accessing runtime
-information such as accumulators and counters (see
-[Accumulators and Counters](#accumulators--counters)), and information
-on iterations (see [Iterations]({{ site.baseurl }}/dev/batch/iterations.html)).
+除了用户自定义的 function(map,reduce 等),Rich functions 
还提供了四个方法:`open`、`close`、`getRuntimeContext` 和
+`setRuntimeContext`。这些方法对于参数化 function
+(参阅 [给 function 传递参数]({% link dev/batch/index.zh.md 
%}#passing-parameters-to-functions)),
+创建和最终确定本地状态,访问广播变量(参阅
+[广播变量]({% link dev/batch/index.zh.md %}#broadcast-variables 
)),以及访问运行时信息,例如累加器和计数器(参阅

Review comment:
       @zhuxiaoshang @RocMarshal 这个地方的链接我怀疑是有问题的,我看了下,这个地方是 FLINK-17009 
引入的,但是没有找到更早的历史。
   怀疑的原因是,这个文档讲的是 datastream 的 udfs,但是这里的链接是 batch 相关的。
   不过这个和整体的翻译无关,能否记录并查找一下这个地方是否真的有问题,正确的链接应该是什么?如果有问题的话,可以再提一个 PR 来进行修改




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to