此处的技巧是:将表名数组从外部的block隐式地传递到内部的block中。用显式方式传递会让DSL看起来很丑陋。
The trick is getting the table names array from the outer block into the inner block without explicitly passing it in somehow (which would have made the DSL ugly).
如果每个数组的元素都需要被处理,而且数组间没有依赖关系,执行的计算任务之间也不需要通信,这样的话将是一个执行并行式计算的理想环境。
If the same processing is required for each array element, with no dependencies in the computations, and no communication required between tasks, we have an ideal parallel computing opportunity.
接下来就是隐式的数组初始化了。
应用推荐