Package org.apache.pig.newplan.logical.visitor

Examples of org.apache.pig.newplan.logical.visitor.UDFFinder


        return true;
    }

    private boolean containsUDFs(LOForEach fo) throws LogicalToPhysicalTranslatorException {
        LogicalPlan logExpPlan = fo.getInnerPlan();
        UDFFinder udfFinder;
        try {
            udfFinder = new UDFFinder(logExpPlan);
            udfFinder.visit();
            // TODO (dvryaboy): in the future we could relax this rule by tracing what fields
            // are being passed into the UDF, and only refusing if the UDF is working on the
            // join key. Transforms of other fields should be ok.
            if (udfFinder.getUDFList().size() != 0) {
                return true;
            }
        } catch (FrontendException e) {
            throw new LogicalToPhysicalTranslatorException(e);
        }
View Full Code Here

TOP

Related Classes of org.apache.pig.newplan.logical.visitor.UDFFinder

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.