Package org.apache.pig.penny

Examples of org.apache.pig.penny.ClassWithArgs


        Map<String, ClassWithArgs> monitorClasses = new HashMap<String, ClassWithArgs>();
        for (String alias : parsedPigScript.aliases()) {
            // only put agents at the beginning of each task pipeline
            // (can't differentiate which step in pipeline is causing delay -- can only tell if a tuple coming into the pipeline is taking longer to go through the pipeline than other tuples)
            if (parsedPigScript.isTaskEntryPoint(alias)) {
                monitorClasses.put(alias, new ClassWithArgs(LAMonitorAgent.class));
            }
        }
        parsedPigScript.trace(LACoordinator.class, monitorClasses);
       
    }
View Full Code Here


            System.out.println("***** TRYING SCRIPT ...");
           
            Map<String, ClassWithArgs> monitorClasses = new HashMap<String, ClassWithArgs>();
            for (String alias : parsedPigScript.aliases()) {
                int lowerBound = (lowerBounds.containsKey(alias))? lowerBounds.get(alias) : 0;
                monitorClasses.put(alias, new ClassWithArgs(CIMonitorAgent.class, lowerBound, skipSize));
            }
            latestTuples = (Map<PhysicalLocation, Tuple>) parsedPigScript.trace(CICoordinator.class, monitorClasses);
           
            // update lower bounds
            lowerBounds.clear();
View Full Code Here

        Map<String, ClassWithArgs> monitorClasses = new HashMap<String, ClassWithArgs>();
        for (String alias : parsedPigScript.aliases()) {
      // Ibis change : start
            if (parsedPigScript.operator(alias).equals("LOLoad")) {
      // Ibis change : end
                monitorClasses.put(alias, new ClassWithArgs(BTInjectTaintMonitorAgent.class));                   
            } else if (alias.equals(traceAlias)) {
                monitorClasses.put(alias, new ClassWithArgs(BTMatchTaintMonitorAgent.class, traceTuple));
            } else {
                monitorClasses.put(alias, new ClassWithArgs(BTPropagateTaintMonitorAgent.class));
            }
        }
        Collection<Tuple> traceResults = (Collection<Tuple>) parsedPigScript.trace(BTCoordinator.class, monitorClasses);
        System.out.println("*** TRACE RESULTS:" + traceResults);
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.penny.ClassWithArgs

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.