Package com.foundationdb.sql.optimizer.plan

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


    }

    public BasePlannable compile(DMLStatementNode stmt, List<ParameterNode> params,
                                 PlanContext plan) {
        stmt = bindAndTransform(stmt); // Get into standard form.
        plan.setPlan(new AST(stmt, params));
        applyRules(plan);
        return (BasePlannable)plan.getPlan();
    }
View Full Code Here


        binder.bind(stmt);
        stmt = booleanNormalizer.normalize(stmt);
        typeComputer.compute(stmt);
        stmt = subqueryFlattener.flatten((DMLStatementNode)stmt);
        // Turn parsed AST into intermediate form as starting point.
        AST ast = new AST((DMLStatementNode)stmt, parser.getParameterList());
        PlanContext plan = new PlanContext(rules, ast);
        rules.applyRules(plan);
        String result = plan.planString();
        if (Boolean.parseBoolean(properties.getProperty("showParameterTypes", "false")))
            result = ast.formatParameterTypes() + result;
        return result;
    }
View Full Code Here

        stmt = booleanNormalizer.normalize(stmt);
        typeComputer.compute(stmt);
        stmt = subqueryFlattener.flatten((DMLStatementNode)stmt);
        // Turn parsed AST into intermediate form as starting point.
        PlanContext plan = new PlanContext(rules,
                new AST((DMLStatementNode)stmt,
                        parser.getParameterList()));
        rules.applyRules(plan);

        Map<Set<Map<String,Boolean>>,Integer> result = new HashMap<>();
        Collection<EquivalenceScope> scopes = new ColumnFinder().find(plan.getPlan());
View Full Code Here

                break;
            case PLAN:
                {
                    PlanContext plan =
                        new PlanContext(rulesContext,
                                        new AST((DMLStatementNode)stmt,
                                                parser.getParameterList()));
                    rulesContext.applyRules(plan);
                    System.out.println(PlanToString.of(plan.getPlan()));
                }
                break;
View Full Code Here

TOP

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

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.