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

Method testSim7

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

Source from the content-addressed store, hash-verified

705 }
706
707 @Test
708 public void testSim7() throws Exception {
709 PhysicalPlan php = new PhysicalPlan();
710
711 PhysicalPlan ldGrpChain1 = GenPhyOp.loadedGrpChain();
712 PhysicalPlan ldGrpChain2 = GenPhyOp.loadedGrpChain();
713
714 POLocalRearrange lr1 = GenPhyOp.topLocalRearrangeOp();
715 POLocalRearrange lr2 = GenPhyOp.topLocalRearrangeOp();
716
717 ldGrpChain1.addAsLeaf(lr1);
718 ldGrpChain2.addAsLeaf(lr2);
719
720 php.merge(ldGrpChain1);
721 php.merge(ldGrpChain2);
722
723 POGlobalRearrange gr = GenPhyOp.topGlobalRearrangeOp();
724 php.addAsLeaf(gr);
725
726 PhysicalPlan ldFil1 = GenPhyOp.loadedFilter();
727
728 php.merge(ldFil1);
729 php.connect(ldFil1.getLeaves().get(0), gr);
730
731 POPackage pk = GenPhyOp.topPackageOp();
732 php.addAsLeaf(pk);
733
734 POStore st = GenPhyOp.topStoreOp();
735 php.addAsLeaf(st);
736 run(php, "test/org/apache/pig/test/data/GoldenFiles/MRC7.gld");
737 }
738
739 @Test
740 public void testSim8() 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