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

Method disconnect

src/org/apache/pig/impl/plan/OperatorPlan.java:241–249  ·  view source on GitHub ↗

Remove an edge from between two nodes. Use org.apache.pig.impl.plan.OperatorPlan#insertBetween(Operator, Operator, Operator) if disconnect is used in the process of inserting a new node between two nodes by calling disconnect followed by a connect. @param from Operator data would flow from.

(E from, E to)

Source from the content-addressed store, hash-verified

239 * flow, false otherwise.
240 */
241 public boolean disconnect(E from, E to) {
242 markDirty();
243
244 boolean sawNull = false;
245 if (mFromEdges.remove(from, to) == null) sawNull = true;
246 if (mToEdges.remove(to, from) == null) sawNull = true;
247
248 return !sawNull;
249 }
250
251 /**
252 * Remove an operator from the plan. Any edges that the node has will

Callers 1

removeAndReconnectMethod · 0.95

Calls 2

markDirtyMethod · 0.95
removeMethod · 0.65

Tested by

no test coverage detected