Package org.apache.pig.impl.logicalLayer

Examples of org.apache.pig.impl.logicalLayer.ColumnPruner


    Map<RelationalOperator, RequiredInfo> cachedRequiredInfo = new HashMap<RelationalOperator, RequiredInfo>();
    private Map<LOLoad, RequiredFields> prunedLoaderColumnsMap = new HashMap<LOLoad, RequiredFields>();
    ColumnPruner pruner;
    public PruneColumns(LogicalPlan plan) {
        super(plan);
        pruner = new ColumnPruner(plan);
    }
View Full Code Here


        StringBuffer message = new StringBuffer();
        if (pruneList.size()!=0)
        {
           
            ColumnPruner columnPruner;
            if (forEach == null)
                columnPruner = new ColumnPruner(mPlan, load, pruneList,
                    new DependencyOrderWalker<LogicalOperator, LogicalPlan>(mPlan));
            else
                columnPruner = new ColumnPruner(mPlan, forEach, pruneList,
                        new DependencyOrderWalker<LogicalOperator, LogicalPlan>(mPlan));
           
            columnPruner.visit();

            message.append("Columns pruned for " + load.getAlias() + ": ");
            for (int i=0;i<pruneList.size();i++)
            {
                message.append("$"+pruneList.get(i).second);
View Full Code Here

TOP

Related Classes of org.apache.pig.impl.logicalLayer.ColumnPruner

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.