Package org.apache.pig.impl.eval

Examples of org.apache.pig.impl.eval.EvalSpec.visit()


                // Now, we need to adjust the expected projection for the
                // eval spec(s) we just pushed.  Also, this will change the
                // function to be the final instead of general instance.
                EvalSpec newSpec = spec.copy(pigContext);
                newSpec.visit(new ReduceAdjuster(pigContext));
                mro.addReduceSpec(newSpec);

                // Adjust the function name for the combine spec, to set it
                // to the initial function instead of the general
                // instance.  Make a copy of the eval spec rather than
View Full Code Here


                // instance.  Make a copy of the eval spec rather than
                // adjusting the existing one, to prevent breaking the
                // logical plan in case another physical plan is generated
                // from it later.
                EvalSpec combineSpec = spec.copy(pigContext);
                combineSpec.visit(new CombineAdjuster());
                mro.toCombine = combineSpec;

            } else {
                mro.addReduceSpec(lo.getSpec()); // otherwise, don't use combiner
            }
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.