Package com.foundationdb.sql.optimizer.plan

Examples of com.foundationdb.sql.optimizer.plan.CostEstimate


        return prepareTime;
    }

    @Override
    public int getEstimatedRowCount() {
        CostEstimate costEstimate = statement.getCostEstimate();
        if (costEstimate == null)
            return -1;
        else
            return (int)costEstimate.getRowCount();
    }
View Full Code Here


    protected double treeScan(int rowWidth, long nRows) {
        return 10 + nRows * .5;
    }

    public synchronized CostEstimate adjustCostEstimate(CostEstimate costEstimate) {
        return new CostEstimate(costEstimate.getRowCount(),
                                random.nextDouble() * costEstimate.getCost());
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.sql.optimizer.plan.CostEstimate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.