您也许已经注意到,中间结果中并不包含任何表示当前分组的信息。
As you might notice, the intermediate result does not contain any information about the current group.
可用一个属性保存中间结果列表,其中的每一个元素都代表一个分组的聚集信息。
We use an attribute for a list of intermediate results, where one element of the list represents the aggregation information for one group.
返回给DB2的中间结果中包含着常用的计数器(DB 2 max函数需要),以及当前分组到目前为止计算出来的实际加权平均数。
The intermediate result that is returned to DB2 contains the usual counter (needed for the DB2 MAX function) and the actual weighted average that we have so far for the current group.
应用推荐