MCPcopy Create free account
hub / github.com/apache/pig / testSim8

Method testSim8

test/org/apache/pig/test/TestMRCompiler.java:739–773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

737 }
738
739 @Test
740 public void testSim8() throws Exception {
741 PhysicalPlan php = new PhysicalPlan();
742
743 PhysicalPlan ldGrpChain1 = GenPhyOp.loadedGrpChain();
744 PhysicalPlan ldGrpChain2 = GenPhyOp.loadedGrpChain();
745
746 POLocalRearrange lr1 = GenPhyOp.topLocalRearrangeOp();
747 POLocalRearrange lr2 = GenPhyOp.topLocalRearrangeOp();
748
749 ldGrpChain1.addAsLeaf(lr1);
750 ldGrpChain2.addAsLeaf(lr2);
751
752 php.merge(ldGrpChain1);
753 php.merge(ldGrpChain2);
754
755 POGlobalRearrange gr = GenPhyOp.topGlobalRearrangeOp();
756 php.addAsLeaf(gr);
757
758 PhysicalPlan ldFil1 = GenPhyOp.loadedFilter();
759 PhysicalPlan ldFil2 = GenPhyOp.loadedFilter();
760
761 php.merge(ldFil1);
762 php.connect(ldFil1.getLeaves().get(0), gr);
763
764 php.merge(ldFil2);
765 php.connect(ldFil2.getLeaves().get(0), gr);
766
767 POPackage pk = GenPhyOp.topPackageOp();
768 php.addAsLeaf(pk);
769
770 POStore st = GenPhyOp.topStoreOp();
771 php.addAsLeaf(st);
772 run(php, "test/org/apache/pig/test/data/GoldenFiles/MRC8.gld");
773 }
774
775 @Test
776 public void testSim9() throws Exception {

Callers

nothing calls this directly

Calls 12

loadedGrpChainMethod · 0.95
topLocalRearrangeOpMethod · 0.95
topGlobalRearrangeOpMethod · 0.95
loadedFilterMethod · 0.95
connectMethod · 0.95
topPackageOpMethod · 0.95
topStoreOpMethod · 0.95
runMethod · 0.95
addAsLeafMethod · 0.80
getMethod · 0.65
mergeMethod · 0.45
getLeavesMethod · 0.45

Tested by

no test coverage detected