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