ye-lun commented on a change in pull request #8995: 
FLINK-13106][doc-zh]Translate Parallel Execution page into Chinese
URL: https://github.com/apache/flink/pull/8995#discussion_r301361276
 
 

 ##########
 File path: docs/dev/parallel.zh.md
 ##########
 @@ -168,26 +168,7 @@ try {
 
 最大 parallelism 可以在所有设置 parallelism 的地方进行设定(客户端和系统层次除外)。与调用 `setParallelism()` 
方法修改并发度相似,你可以通过调用 `setMaxParallelism()` 方法来设定最大 parallelism。
 
-默认的最大 parallelism 等于将 operatorParallelism + (operatorParallelism / 2) 值舍入到其下一个 
`2` 的幂次方的值,其计算方式如以下所示。
-
-{% highlight scala %}
-   /**
-        * Round the given number to the next power of two.
-        * @param x number is the value  of 'operatorParallelism + 
(operatorParallelism / 2)'
-        * @return x rounded up to the next power of two
-        */
-       public static int roundUpToPowerOfTwo(int x) {
-               x = x - 1;
-               x |= x >> 1;
-               x |= x >> 2;
-               x |= x >> 4;
-               x |= x >> 8;
-               x |= x >> 16;
-               return x + 1;
-       }
-{% endhighlight %}
-
-注意,默认最大 parallelism 下限为 `128`,上限为 `32768`。
+默认的最大 parallelism 等于将 `operatorParallelism + (operatorParallelism / 2)` 
值四舍五入到大于等于该值的一个整型值,并且这个整型值是 `2` 的幂次方,注意默认最大 parallelism 下限为 `128`,上限为 `32768`。
 
 Review comment:
   ok,thanks

----------------------------------------------------------------
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


With regards,
Apache Git Services

Reply via email to