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

Method trimBelow

src/org/apache/pig/newplan/BaseOperatorPlan.java:519–529  ·  view source on GitHub ↗

Trim everything below a given operator. The specified operator will NOT be removed. @param op Operator to trim everything after. @throws FrontendException

(Operator op)

Source from the content-addressed store, hash-verified

517 * @throws FrontendException
518 */
519 public void trimBelow(Operator op) throws FrontendException {
520 if (getSuccessors(op) != null) {
521 List<Operator> succs = new ArrayList<Operator>();
522 succs.addAll(getSuccessors(op));
523 for (Operator succ : succs) {
524 disconnect(op, succ);
525 trimBelow(succ);
526 remove(succ);
527 }
528 }
529 }
530}

Callers 1

moveTreeMethod · 0.95

Calls 4

getSuccessorsMethod · 0.95
disconnectMethod · 0.95
removeMethod · 0.95
addAllMethod · 0.65

Tested by

no test coverage detected