/** * Marks duplicate edges with DuplicateEdgeGroupProperty. */ public void markDuplicateEdges() { nonIterativeIncomingEdges.forEach(((irVertex, irEdges) -> irEdges.forEach(irEdge -> { irEdge.setProperty( DuplicateEdgeGroupProperty.of(new DuplicateEdgeGroupPropertyValue(String.valueOf(duplicateEdgeGroupId)))); duplicateEdgeGroupId++; }))); }
/** * Marks duplicate edges with DuplicateEdgeGroupProperty. */ public void markDuplicateEdges() { nonIterativeIncomingEdges.forEach(((irVertex, irEdges) -> irEdges.forEach(irEdge -> { irEdge.setProperty( DuplicateEdgeGroupProperty.of(new DuplicateEdgeGroupPropertyValue(String.valueOf(duplicateEdgeGroupId)))); duplicateEdgeGroupId++; }))); }
.orElseThrow(() -> new PlanAppenderException("Cached edge does not have duplicated edge group property.")); duplicateEdgeGroupPropertyValue.setGroupSize(duplicateEdgeGroupPropertyValue.getGroupSize() + 1); newEdge.getExecutionProperties().put(DuplicateEdgeGroupProperty.of(duplicateEdgeGroupPropertyValue)); } else { throw new PlanAppenderException("Cached edge is not found in the original plan.");
.orElseThrow(() -> new PlanAppenderException("Cached edge does not have duplicated edge group property.")); duplicateEdgeGroupPropertyValue.setGroupSize(duplicateEdgeGroupPropertyValue.getGroupSize() + 1); newEdge.getExecutionProperties().put(DuplicateEdgeGroupProperty.of(duplicateEdgeGroupPropertyValue)); } else { throw new PlanAppenderException("Cached edge is not found in the original plan.");