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

Method testSpl3

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

Source from the content-addressed store, hash-verified

474 }
475
476 @Test
477 public void testSpl3() throws Exception {
478 PhysicalPlan php = new PhysicalPlan();
479
480 POLoad lA = GenPhyOp.topLoadOp();
481 POSplit spl = GenPhyOp.topSplitOp();
482 php.add(lA);
483 php.add(spl);
484 php.connect(lA, spl);
485
486 POFilter fl1 = GenPhyOp.topFilterOp();
487 fl1.setRequestedParallelism(10);
488 POFilter fl2 = GenPhyOp.topFilterOp();
489 fl2.setRequestedParallelism(20);
490 php.add(fl1);
491 php.add(fl2);
492 php.connect(spl, fl1);
493 php.connect(spl, fl2);
494
495 POSplit sp11 = GenPhyOp.topSplitOp();
496 POSplit sp21 = GenPhyOp.topSplitOp();
497 php.add(sp11);
498 php.add(sp21);
499 php.connect(fl1, sp11);
500 php.connect(fl2, sp21);
501
502 POFilter fl11 = GenPhyOp.topFilterOp();
503 fl11.setRequestedParallelism(10);
504 POFilter fl21 = GenPhyOp.topFilterOp();
505 fl21.setRequestedParallelism(20);
506 POFilter fl22 = GenPhyOp.topFilterOp();
507 fl22.setRequestedParallelism(30);
508 php.add(fl11);
509 php.add(fl21);
510 php.add(fl22);
511 php.connect(sp11, fl11);
512 php.connect(sp21, fl21);
513 php.connect(sp21, fl22);
514
515 POLocalRearrange lr1 = GenPhyOp.topLocalRearrangeOp();
516 lr1.setRequestedParallelism(40);
517 POLocalRearrange lr21 = GenPhyOp.topLocalRearrangeOp();
518 lr21.setRequestedParallelism(15);
519 POLocalRearrange lr22 = GenPhyOp.topLocalRearrangeOp();
520 lr22.setRequestedParallelism(35);
521 php.add(lr1);
522 php.add(lr21);
523 php.add(lr22);
524 php.connect(fl11, lr1);
525 php.connect(fl21, lr21);
526 php.connect(fl22, lr22);
527
528 POGlobalRearrange gr = GenPhyOp.topGlobalRearrangeOp();
529 php.addAsLeaf(gr);
530
531 POPackage pk = GenPhyOp.topPackageOp();
532 pk.setRequestedParallelism(25);
533 php.addAsLeaf(pk);

Callers

nothing calls this directly

Calls 13

topLoadOpMethod · 0.95
topSplitOpMethod · 0.95
connectMethod · 0.95
topFilterOpMethod · 0.95
topLocalRearrangeOpMethod · 0.95
topGlobalRearrangeOpMethod · 0.95
topPackageOpMethod · 0.95
topUnionOpMethod · 0.95
topStoreOpMethod · 0.95
runMethod · 0.95
addAsLeafMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected