Package org.apache.pig.newplan.logical.optimizer

Examples of org.apache.pig.newplan.logical.optimizer.SchemaResetter


    private LogicalPlan migratePlan(org.apache.pig.impl.logicalLayer.LogicalPlan lp) throws FrontendException{
        LogicalPlanMigrationVistor visitor = new LogicalPlanMigrationVistor(lp);       
        visitor.visit();
        org.apache.pig.newplan.logical.relational.LogicalPlan newPlan = visitor.getNewLogicalPlan();
       
        SchemaResetter schemaResetter = new SchemaResetter(newPlan);
        schemaResetter.visit();
       
        return newPlan;
    }
View Full Code Here


                // translate old logical plan to new plan
                LogicalPlanMigrationVistor visitor = new LogicalPlanMigrationVistor(plan);
                visitor.visit();
                org.apache.pig.newplan.logical.relational.LogicalPlan newPlan = visitor.getNewLogicalPlan();
               
                SchemaResetter schemaResetter = new SchemaResetter(newPlan);
                schemaResetter.visit();
               
                HashSet<String> optimizerRules = null;
                try {
                    optimizerRules = (HashSet<String>) ObjectSerializer
                            .deserialize(pigContext.getProperties().getProperty(
View Full Code Here

    throws FrontendException{
        LogicalPlanMigrationVistor visitor = new LogicalPlanMigrationVistor(lp);       
        visitor.visit();
        org.apache.pig.newplan.logical.relational.LogicalPlan newPlan = visitor.getNewLogicalPlan();
       
        SchemaResetter schemaResetter = new SchemaResetter(newPlan);
        schemaResetter.visit();
        return newPlan;
    }
View Full Code Here

            LogicalPlan lp)
    throws FrontendException{
        UidResetter uidResetter = new UidResetter( lp );
        uidResetter.visit();
       
        SchemaResetter schemaResetter = new SchemaResetter( lp );
        schemaResetter.visit();
       
        LoadStoreFuncDupSignatureValidator loadStoreFuncDupSignatureValidator = new LoadStoreFuncDupSignatureValidator(lp);
        loadStoreFuncDupSignatureValidator.validate();
       
        StoreAliasSetter storeAliasSetter = new StoreAliasSetter( lp );
View Full Code Here

                // translate old logical plan to new plan
                LogicalPlanMigrationVistor visitor = new LogicalPlanMigrationVistor(plan);
                visitor.visit();
                org.apache.pig.newplan.logical.relational.LogicalPlan newPlan = visitor.getNewLogicalPlan();
               
                SchemaResetter schemaResetter = new SchemaResetter(newPlan);
                schemaResetter.visit();
               
                HashSet<String> optimizerRules = null;
                try {
                    optimizerRules = (HashSet<String>) ObjectSerializer
                            .deserialize(pigContext.getProperties().getProperty(
View Full Code Here

            // Since we adjust the uid layout, clear all cached uids
            UidResetter uidResetter = new UidResetter(currentPlan);
            uidResetter.visit();
           
            // Manually regenerate schema since we skip listener
            SchemaResetter schemaResetter = new SchemaResetter(currentPlan);
            schemaResetter.visit();
        }
View Full Code Here

        // Since we adjust the uid layout, clear all cached uids
        UidResetter uidResetter = new UidResetter(currentPlan);
        uidResetter.visit();

        // Manually regenerate schema since we skip listener
        SchemaResetter schemaResetter = new SchemaResetter(currentPlan);
        schemaResetter.visit();
      }
View Full Code Here

        }
       
        UidResetter uidResetter = new UidResetter( plan );
        uidResetter.visit();
       
        SchemaResetter schemaResetter = new SchemaResetter( plan );
        schemaResetter.visit();
       
        HashSet<String> optimizerRules = null;
        try {
            optimizerRules = (HashSet<String>) ObjectSerializer
                    .deserialize(pigContext.getProperties().getProperty(
View Full Code Here

        op.setFilterPlan( expr );
        alias = buildOp( loc, op, alias, inputAlias, null ); // it should actually return same alias
        try {
            (new ProjStarInUdfExpander(op.getPlan())).visit(op);
            new SchemaResetter(op.getPlan(), true).visit(op);
        } catch (FrontendException e) {
            throw new ParserValidationException( intStream, loc, e );
        }
        return alias;
    }
View Full Code Here

    private void expandAndResetVisitor(SourceLocation loc,
      LogicalRelationalOperator lrop) throws ParserValidationException {
        try {
      (new ProjectStarExpander(lrop.getPlan())).visit();
      (new ProjStarInUdfExpander(lrop.getPlan())).visit();
      new SchemaResetter(lrop.getPlan(), true).visit();
  } catch (FrontendException e) {
      throw new ParserValidationException(intStream, loc, e);
  }
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.newplan.logical.optimizer.SchemaResetter

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.