/** * Static method exposing the constructor. * @param value value of the new execution property. * @return the newly created execution property. */ public static DuplicateEdgeGroupProperty of(final DuplicateEdgeGroupPropertyValue value) { return new DuplicateEdgeGroupProperty(value); } }
/** * 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.");
/** * Static method exposing the constructor. * @param value value of the new execution property. * @return the newly created execution property. */ public static DuplicateEdgeGroupProperty of(final DuplicateEdgeGroupPropertyValue value) { return new DuplicateEdgeGroupProperty(value); } }
.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.");