Package com.foundationdb.sql.optimizer.plan

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


        plan.getPlan().accept(new ColumnEquivalenceVisitor());
       
        // Do FK table equivalence finding
        // Loop through all the tables, and find any possible FK Parents
        // Add these to the possible Equivalences
        BaseQuery basePlan = (BaseQuery)(plan.getPlan());
        List<Picker> pickers = new JoinsFinder(plan).find();
        for (Picker picker : pickers) {
            addFKEquivsFromJoins (picker.rootJoin(), picker.query.getFKEquivalencies());
            picker.query.getFKEquivalencies().copyEquivalences(picker.query.getColumnEquivalencies());
        }
View Full Code Here


    private Deque<EquivalenceFinder<ColumnExpression>> fkStack =
            new ArrayDeque<>(EQUIVS_DEQUE_SIZE);
           
    public boolean enterNode(PlanNode n) {
        if (n instanceof BaseQuery) {
            BaseQuery bq = (BaseQuery) n;
            stack.push(bq.getColumnEquivalencies());
            fkStack.push(bq.getFKEquivalencies());
            return true;
        }
        return false;
    }
View Full Code Here

TOP

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

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.