All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lealone.sql.query.QAggregateQuick Maven / Gradle / Ivy

/*
 * Copyright Lealone Database Group.
 * Licensed under the Server Side Public License, v 1.
 * Initial Developer: zhh
 */
package org.lealone.sql.query;

import org.lealone.db.value.Value;

// 对min、max、count三个聚合函数的特殊优化
class QAggregateQuick extends QOperator {

    QAggregateQuick(Select select) {
        super(select);
    }

    @Override
    public void start() {
        // 什么都不需要做
    }

    @Override
    public void run() {
        Value[] row = createRow();
        result.addRow(row);
        rowCount = 1;
        loopEnd = true;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy