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

Method insertBetween

src/org/apache/pig/newplan/BaseOperatorPlan.java:457–463  ·  view source on GitHub ↗
(Operator pred, Operator operatorToInsert, Operator succ)

Source from the content-addressed store, hash-verified

455 }
456
457 @Override
458 public void insertBetween(Operator pred, Operator operatorToInsert, Operator succ) throws FrontendException {
459 add(operatorToInsert);
460 Pair<Integer, Integer> pos = disconnect(pred, succ);
461 connect(pred, pos.first, operatorToInsert, 0);
462 connect(operatorToInsert, 0, succ, pos.second);
463 }
464
465 /**
466 * A method to check if there is a path from a given node to another node

Callers

nothing calls this directly

Calls 3

addMethod · 0.95
disconnectMethod · 0.95
connectMethod · 0.95

Tested by

no test coverage detected