Package org.apache.pig.newplan.optimizer

Examples of org.apache.pig.newplan.optimizer.Rule.match()


        pattern.connect(s1, s2);
        pattern.connect(s1, s3);
        pattern.connect(s1, s4);
       
        Rule r = new SillyRule("basic", pattern);
        List<OperatorPlan> l = r.match(plan);
        assertEquals(1, l.size());
       
        assertEquals(1, l.get(0).getSources().size());
        assertEquals(3, l.get(0).getSinks().size());
        assertEquals(4, l.get(0).size());
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.