Package org.apache.pig.backend.executionengine

Examples of org.apache.pig.backend.executionengine.ExecPhysicalPlan


        Optimizer storeOptimizer = new StoreOptimizer();
        storeOptimizer.optimize(root);

        // Execute
        ExecPhysicalPlan pp =
            pigContext.getExecutionEngine().compile(root, null);

        return pigContext.getExecutionEngine().execute(pp);
    }
View Full Code Here


        lp.explain(stream);
       
        stream.println("-----------------------------------------------");
        stream.println("Physical Plan:");
        try {
            ExecPhysicalPlan pp =
                pigContext.getExecutionEngine().compile(lp, null);
       
            pp.explain(stream);
        }
        catch (ExecException e) {
            StringBuilder sbException = new StringBuilder();
            sbException.append("Failed to compile to phyiscal plan: ");
            sbException.append(alias);
View Full Code Here

      long time = System.currentTimeMillis();
      String Result;
      PigContext pigContext = new PigContext(ExecType.LOCAL, hadoopPigContext.getProperties());
     
      //compile the logical plan to get the physical plan once and for all
      ExecPhysicalPlan PhyPlan = null;
      try {
        pigContext.connect();
      PhyPlan = pigContext.getExecutionEngine().compile(plan, null);
    } catch (ExecException e1) {
      // TODO Auto-generated catch block
      e1.printStackTrace();
    }
    Map<OperatorKey, OperatorKey> logicalToPhysicalKeys = ((LocalExecutionEngine)pigContext.getExecutionEngine()).getLogicalToPhysicalMap();
    Map<OperatorKey, ExecPhysicalOperator> physicalOpTable = PhyPlan.getOpTable();
           
        // Acquire initial base data by sampling from input relations (this is idempotent)
      FetchBaseData.ReadBaseData(plan.getRootOperator(), GlobalBaseData, SAMPLE_SIZE, hadoopPigContext);
           
        /////// PASS 1: push data sample through query plan
View Full Code Here

TOP

Related Classes of org.apache.pig.backend.executionengine.ExecPhysicalPlan

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.