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)
| 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 |
no test coverage detected