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

Method remove

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

Remove an operator from the plan. @param op Operator to be removed @throws FrontendException if the remove operation attempts to remove an operator that is still connected to other operators.

(Operator op)

Source from the content-addressed store, hash-verified

167 * remove an operator that is still connected to other operators.
168 */
169 public void remove(Operator op) throws FrontendException {
170
171 if (fromEdges.containsKey(op) || toEdges.containsKey(op)) {
172 throw new FrontendException("Attempt to remove operator " + op.getName()
173 + " that is still connected in the plan", 2243);
174 }
175 if (softFromEdges.containsKey(op) || softToEdges.containsKey(op)) {
176 throw new FrontendException("Attempt to remove operator " + op.getName()
177 + " that is still softly connected in the plan", 2243);
178 }
179 markDirty();
180 ops.remove(op);
181 }
182
183 /**
184 * Connect two operators in the plan, controlling which position in the

Callers 3

replaceMethod · 0.95
removeAndReconnectMethod · 0.95
trimBelowMethod · 0.95

Calls 4

markDirtyMethod · 0.95
removeMethod · 0.65
containsKeyMethod · 0.45
getNameMethod · 0.45

Tested by

no test coverage detected