Examples of LogicalExpressionPlan


Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

           
            LOInnerLoad innerLoad = new LOInnerLoad(innerPlan, foreach, i);
            innerPlan.add(innerLoad);
            innerPlan.connect(innerLoad, gen);
           
            LogicalExpressionPlan exp = new LogicalExpressionPlan();
            ProjectExpression prj = new ProjectExpression(exp, j++, -1, gen);
            exp.add(prj);
            exps.add(exp);
        }
        return foreach;
    }
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

       
        for( int i = 0; i < inputs.size(); i++ ) {
            ArrayList<LogicalPlan> plans =
                (ArrayList<LogicalPlan>) cg.getGroupByPlans().get(inputs.get(i));
            for( LogicalPlan plan : plans ) {
                LogicalExpressionPlan expPlan = translateExpressionPlan(plan, cg, newCogroup);
                newExpressionPlans.put(Integer.valueOf(i), expPlan);
            }
        }
       
        newCogroup.setAlias(cg.getAlias());
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

        org.apache.pig.newplan.logical.relational.LOSort newSort =
            new org.apache.pig.newplan.logical.relational.LOSort(logicalPlan,
                    newSortPlans, sort.getAscendingCols(), sort.getUserFunc());
       
        for (LogicalPlan sortPlan : sortPlans) {
            LogicalExpressionPlan newSortPlan = translateExpressionPlan(sortPlan, sort, newSort);
            newSortPlans.add(newSortPlan);
        }
       
        newSort.setAlias(sort.getAlias());
        newSort.setRequestedParallelism(sort.getRequestedParallelism());
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

   
    public void visit(LOFilter filter) throws VisitorException {
        org.apache.pig.newplan.logical.relational.LOFilter newFilter = new org.apache.pig.newplan.logical.relational.LOFilter(logicalPlan);
       
        LogicalPlan filterPlan = filter.getComparisonPlan();
        LogicalExpressionPlan newFilterPlan = translateExpressionPlan(filterPlan, filter, newFilter);
     
        newFilter.setFilterPlan(newFilterPlan);
        newFilter.setAlias(filter.getAlias());
        newFilter.setRequestedParallelism(filter.getRequestedParallelism());
       
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

    public void visit(LOSplitOutput splitOutput) throws VisitorException {
        org.apache.pig.newplan.logical.relational.LOSplitOutput newSplitOutput =
            new org.apache.pig.newplan.logical.relational.LOSplitOutput(logicalPlan);
       
        LogicalPlan filterPlan = splitOutput.getConditionPlan();
        LogicalExpressionPlan newFilterPlan = translateExpressionPlan(filterPlan, splitOutput, newSplitOutput);
     
        newSplitOutput.setFilterPlan(newFilterPlan);
        newSplitOutput.setAlias(splitOutput.getAlias());
        newSplitOutput.setRequestedParallelism(splitOutput.getRequestedParallelism());
       
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

        } catch (FrontendException e) {
            throw new VisitorException(e);
        }
       
        for (LogicalPlan sortPlan : sortPlans) {
            LogicalExpressionPlan newSortPlan = translateInnerExpressionPlan(sortPlan, sort, newSort, mPlan);
            newSortPlans.add(newSortPlan);
        }
    }
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

        org.apache.pig.newplan.logical.relational.LOFilter newFilter =
            new org.apache.pig.newplan.logical.relational.LOFilter(newInnerPlan);
       
        newFilter.setAlias(filter.getAlias());
        newFilter.setRequestedParallelism(filter.getRequestedParallelism());
        LogicalExpressionPlan newFilterPlan = translateInnerExpressionPlan(filter.getComparisonPlan(), filter, newFilter, mPlan);
        newFilter.setFilterPlan(newFilterPlan);
        newInnerPlan.add(newFilter);
        innerOpsMap.put(filter, newFilter);
        try {
            translateInnerPlanConnection(filter, newFilter);
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

            LOInnerLoad innerLoad = new LOInnerLoad(newForEachInnerPlan,
                    newForEach, project.isStar()?-1:project.getCol());
            newForEachInnerPlan.add(innerLoad);
            newForEachInnerPlan.connect(innerLoad, generate);
            LogicalExpressionPlan expPlan = new LogicalExpressionPlan();
            expPlans.add(expPlan);
            ProjectExpression pe = new ProjectExpression(expPlan, i, -1, generate);
            expPlan.add(pe);
        }
       
        newInnerPlan.add(newForEach);
        innerOpsMap.put(foreach, newForEach);
        try {
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

    @Override
    public void visit(LOInnerLoad load) throws FrontendException {
        // the expression in LOInnerLoad contains info relative from LOForEach
        // so use LOForeach as currentOp
        currentOp = load.getLOForEach();
        LogicalExpressionPlan exp = (LogicalExpressionPlan)load.getProjection().getPlan();
      
        LogicalExpressionVisitor v = getVisitor(exp);
        v.visit();      
    }
View Full Code Here

Examples of org.apache.pig.newplan.logical.expression.LogicalExpressionPlan

        LOInnerLoad l2 = new LOInnerLoad(innerPlan, foreach, 1);
        innerPlan.add(l2);
       
        List<LogicalExpressionPlan> eps = new ArrayList<LogicalExpressionPlan>();
        LOGenerate gen = new LOGenerate(innerPlan, eps, new boolean[] {false, true});
        LogicalExpressionPlan p1 = new LogicalExpressionPlan();
        p1.add(new ProjectExpression(p1, 0, -1, gen));
        LogicalExpressionPlan p2 = new LogicalExpressionPlan();
        p2.add(new ProjectExpression(p2, 1, -1, gen));
        eps.add(p1);
        eps.add(p2);
       
       
        innerPlan.add(gen);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.