Search in sources :

Example 6 with DGRowPacket

use of com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket in project dble by actiontech.

the class GroupByLocalResult method updateSumFunc.

protected void updateSumFunc(List<ItemSum> functions, RowDataPacket row) {
    for (int index = 0; index < functions.size(); index++) {
        ItemSum sum = functions.get(index);
        Object transObj = ((DGRowPacket) row).getSumTran(index);
        sum.aggregatorAdd(row, transObj);
    }
}
Also used : ItemSum(com.actiontech.dble.plan.common.item.function.sumfunc.ItemSum) DGRowPacket(com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket)

Example 7 with DGRowPacket

use of com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket in project dble by actiontech.

the class GroupResultDiskBuffer method updateSumFunc.

protected void updateSumFunc(List<ItemSum> functions, RowDataPacket row) {
    for (int index = 0; index < functions.size(); index++) {
        ItemSum sum = functions.get(index);
        Object transObj = ((DGRowPacket) row).getSumTran(index);
        sum.aggregatorAdd(row, transObj);
    }
}
Also used : ItemSum(com.actiontech.dble.plan.common.item.function.sumfunc.ItemSum) DGRowPacket(com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket)

Example 8 with DGRowPacket

use of com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket in project dble by actiontech.

the class GroupResultDiskBuffer method initSumFunctions.

protected void initSumFunctions(List<ItemSum> functions, RowDataPacket row) {
    for (int i = 0; i < functions.size(); i++) {
        ItemSum sum = functions.get(i);
        Object transObj = ((DGRowPacket) row).getSumTran(i);
        sum.resetAndAdd(row, transObj);
    }
}
Also used : ItemSum(com.actiontech.dble.plan.common.item.function.sumfunc.ItemSum) DGRowPacket(com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket)

Example 9 with DGRowPacket

use of com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket in project dble by actiontech.

the class DirectGroupByHandler method initSumFunctions.

protected void initSumFunctions(List<ItemSum> functions, RowDataPacket row) {
    for (int index = 0; index < functions.size(); index++) {
        ItemSum sum = functions.get(index);
        Object transObj = ((DGRowPacket) row).getSumTran(index);
        sum.resetAndAdd(row, transObj);
    }
}
Also used : ItemSum(com.actiontech.dble.plan.common.item.function.sumfunc.ItemSum) DGRowPacket(com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket)

Aggregations

DGRowPacket (com.actiontech.dble.backend.mysql.nio.handler.query.impl.groupby.directgroupby.DGRowPacket)9 ItemSum (com.actiontech.dble.plan.common.item.function.sumfunc.ItemSum)8