Package org.apache.pig.impl.plan

Examples of org.apache.pig.impl.plan.PlanWalker


     * @throws VisitorException
     */
    protected void visit(LOSort s) throws VisitorException {
        // Visit the sort function
        for(LogicalPlan lp: s.getSortColPlans()) {
            PlanWalker w = new DependencyOrderWalker(lp);
            pushWalker(w);
            w.walk(this);
            popWalker();
        }
    }
View Full Code Here


     *            the logical filter operator that has to be visited
     * @throws VisitorException
     */
    protected void visit(LOFilter filter) throws VisitorException {
        // Visit the condition for the filter followed by the input
        PlanWalker w = new DependencyOrderWalker(filter.getComparisonPlan());
        pushWalker(w);
        w.walk(this);
        popWalker();
    }
View Full Code Here

     * @throws VisitorException
     */
    protected void visit(LOGenerate g) throws VisitorException {
        // Visit the operators that are part of the foreach plan
        for(LogicalPlan lp: g.getGeneratePlans()) {
            PlanWalker w = new DependencyOrderWalker(lp);
            pushWalker(w);
            w.walk(this);
            popWalker();
        }
    }
View Full Code Here

    }

    protected void visit(LOSplitOutput sop) throws VisitorException {
        LogicalPlan lp = sop.getConditionPlan();
        if (null != lp) {
            PlanWalker w = new DependencyOrderWalker(lp);
            pushWalker(w);
            w.walk(this);
            popWalker();
        }
    }
View Full Code Here

            for(LogicalPlan lp: mapGByPlans.get(op)) {
                if (null != lp) {
                    // TODO FIX - How do we know this should be a
                    // DependencyOrderWalker?  We should be replicating the
                    // walker the current visitor is using.
                    PlanWalker w = new DependencyOrderWalker(lp);
                    pushWalker(w);
                    w.walk(this);
                    popWalker();
                }
            }
        }
    }
View Full Code Here

            for(LogicalPlan lp: mapGByPlans.get(op)) {
                if (null != lp) {
                    // TODO FIX - How do we know this should be a
                    // DependencyOrderWalker?  We should be replicating the
                    // walker the current visitor is using.
                    PlanWalker w = new DependencyOrderWalker(lp);
                    pushWalker(w);
                    w.walk(this);
                    popWalker();
                }
            }
        }
    }
View Full Code Here

     * @throws VisitorException
     */
    protected void visit(LOForEach forEach) throws VisitorException {
        // Visit each of generates projection elements.
        for(LogicalPlan lp: forEach.getForEachPlans()) {
            PlanWalker w = new DependencyOrderWalker(lp);
            pushWalker(w);
            w.walk(this);
            popWalker();
        }
    }
View Full Code Here

     * @throws VisitorException
     */
    protected void visit(LOSort s) throws VisitorException {
        // Visit the sort function
        for(LogicalPlan lp: s.getSortColPlans()) {
            PlanWalker w = new DependencyOrderWalker(lp);
            pushWalker(w);
            w.walk(this);
            popWalker();
        }
    }
View Full Code Here

     *            the logical filter operator that has to be visited
     * @throws VisitorException
     */
    protected void visit(LOFilter filter) throws VisitorException {
        // Visit the condition for the filter followed by the input
        PlanWalker w = new DependencyOrderWalker(filter.getComparisonPlan());
        pushWalker(w);
        w.walk(this);
        popWalker();
    }
View Full Code Here

     * @throws VisitorException
     */
    protected void visit(LOGenerate g) throws VisitorException {
        // Visit the operators that are part of the foreach plan
        for(LogicalPlan lp: g.getGeneratePlans()) {
            PlanWalker w = new DependencyOrderWalker(lp);
            pushWalker(w);
            w.walk(this);
            popWalker();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.plan.PlanWalker

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.