当前位置: 首页>>代码示例>>Java>>正文


Java DanglingNestedNodeRemover类代码示例

本文整理汇总了Java中org.apache.pig.newplan.logical.optimizer.DanglingNestedNodeRemover的典型用法代码示例。如果您正苦于以下问题:Java DanglingNestedNodeRemover类的具体用法?Java DanglingNestedNodeRemover怎么用?Java DanglingNestedNodeRemover使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


DanglingNestedNodeRemover类属于org.apache.pig.newplan.logical.optimizer包,在下文中一共展示了DanglingNestedNodeRemover类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: compile

import org.apache.pig.newplan.logical.optimizer.DanglingNestedNodeRemover; //导入依赖的package包/类
private void compile(LogicalPlan lp) throws FrontendException  {
    DanglingNestedNodeRemover DanglingNestedNodeRemover = new DanglingNestedNodeRemover( lp );
    DanglingNestedNodeRemover.visit();
    
    new ColumnAliasConversionVisitor(lp).visit();
    new SchemaAliasVisitor(lp).visit();
    new ScalarVisitor(lp, pigContext, scope).visit();

    // TODO: move optimizer here from HExecuteEngine.
    // TODO: input/output validation visitor

    CompilationMessageCollector collector = new CompilationMessageCollector() ;

    new TypeCheckingRelVisitor( lp, collector).visit();
    if(aggregateWarning) {
        CompilationMessageCollector.logMessages(collector, MessageType.Warning, aggregateWarning, log);
    } else {
        for(Enum type: MessageType.values()) {
            CompilationMessageCollector.logAllMessages(collector, log);
        }
    }

    new UnionOnSchemaSetter( lp ).visit();
    new CastLineageSetter(lp, collector).visit();
    new ScalarVariableValidator(lp).visit();
}
 
开发者ID:sigmoidanalytics,项目名称:spork-streaming,代码行数:27,代码来源:PigServer.java

示例2: optimizeNewLP

import org.apache.pig.newplan.logical.optimizer.DanglingNestedNodeRemover; //导入依赖的package包/类
/**
 * Run default set of optimizer rules on new logical plan
 * @param lp
 * @return optimized logical plan
 * @throws FrontendException
 */
public static  LogicalPlan optimizeNewLP(
        LogicalPlan lp)
throws FrontendException{
    DanglingNestedNodeRemover DanglingNestedNodeRemover = new DanglingNestedNodeRemover( lp );
    DanglingNestedNodeRemover.visit();

    UidResetter uidResetter = new UidResetter( lp );
    uidResetter.visit();

    SchemaResetter schemaResetter =
            new SchemaResetter( lp, true /*disable duplicate uid check*/ );
    schemaResetter.visit();

    StoreAliasSetter storeAliasSetter = new StoreAliasSetter( lp );
    storeAliasSetter.visit();

    // run optimizer
    org.apache.pig.newplan.logical.optimizer.LogicalPlanOptimizer optimizer =
        new org.apache.pig.newplan.logical.optimizer.LogicalPlanOptimizer(lp, 100, null);
    optimizer.optimize();

    SortInfoSetter sortInfoSetter = new SortInfoSetter( lp );
    sortInfoSetter.visit();

    return lp;
}
 
开发者ID:sigmoidanalytics,项目名称:spork-streaming,代码行数:33,代码来源:Util.java

示例3: optimizeNewLP

import org.apache.pig.newplan.logical.optimizer.DanglingNestedNodeRemover; //导入依赖的package包/类
/**
 * Run default set of optimizer rules on new logical plan
 * @param lp
 * @return optimized logical plan
 * @throws FrontendException
 */
public static  LogicalPlan optimizeNewLP( 
        LogicalPlan lp)
throws FrontendException{
    DanglingNestedNodeRemover DanglingNestedNodeRemover = new DanglingNestedNodeRemover( lp );
    DanglingNestedNodeRemover.visit();
    
    UidResetter uidResetter = new UidResetter( lp );
    uidResetter.visit();
    
    SchemaResetter schemaResetter = 
            new SchemaResetter( lp, true /*disable duplicate uid check*/ );
    schemaResetter.visit();
    
    LoadStoreFuncDupSignatureValidator loadStoreFuncDupSignatureValidator = new LoadStoreFuncDupSignatureValidator(lp);
    loadStoreFuncDupSignatureValidator.validate();
    
    StoreAliasSetter storeAliasSetter = new StoreAliasSetter( lp );
    storeAliasSetter.visit();
    
    // run optimizer
    org.apache.pig.newplan.logical.optimizer.LogicalPlanOptimizer optimizer = 
        new org.apache.pig.newplan.logical.optimizer.LogicalPlanOptimizer(lp, 100, null);
    optimizer.optimize();
    
    SortInfoSetter sortInfoSetter = new SortInfoSetter( lp );
    sortInfoSetter.visit();
    
    return lp;
}
 
开发者ID:PonIC,项目名称:PonIC,代码行数:36,代码来源:Util.java


注:本文中的org.apache.pig.newplan.logical.optimizer.DanglingNestedNodeRemover类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。