Package org.apache.pig.penny

Examples of org.apache.pig.penny.ParsedPigScript.inEdges()


        double sampleRate = Double.parseDouble(args[2]);        // what fraction of data to sample for testing
        String goldenLogicClass = args[3];                        // class that gives the "golden" (correct) output for a given input tuple

        if (!parsedPigScript.aliases().contains(testAlias)) throw new IllegalArgumentException("Invalid alias.");

        List<String> upstreamAliases = parsedPigScript.inEdges(testAlias);
        if (upstreamAliases.size() != 1) throw new IllegalArgumentException("Unable to perform testing of given alias.");
        String prevAlias = upstreamAliases.iterator().next();
       
        Map<String, ClassWithArgs> monitorClasses = new HashMap<String, ClassWithArgs>();
        monitorClasses.put(prevAlias, new ClassWithArgs(GLMonitorAgent1.class, sampleRate));
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.