throw new RuntimeException("Planner exception: Null source group must indicate a spout node at this phase of planning"); if(g1==null || !g1.equals(g2)) { graph.removeEdge(e); PartitionNode pNode = makeIdentityPartition(e.source); graph.addVertex(pNode);
@Override public Edge<V> removeEdge(V sourceVertex, V targetVertex) { return m_graph.removeEdge(sourceVertex, targetVertex); }
public void applyLeave(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext) { graph.removeEdge(eventsPerStream[0]); Object from = factory.getFrom().evaluate(eventsPerStream, true, exprEvaluatorContext); Object to = factory.getTo().evaluate(eventsPerStream, true, exprEvaluatorContext); if (vertexReferenceCount.remove(from)) { graph.removeVertex(from); } if (vertexReferenceCount.remove(to)) { graph.removeVertex(to); } }
throw new RuntimeException("Planner exception: Null source group must indicate a spout node at this phase of planning"); if(g1==null || !g1.equals(g2)) { graph.removeEdge(e); PartitionNode pNode = makeIdentityPartition(e.source); graph.addVertex(pNode);