public Set<String> getMemoryKeys() { return computeKeys.stream().filter(key -> inExecute || !key.isTransient()).map(VertexComputeKey::getKey).collect(Collectors.toSet()); }
protected void complete() { // remove all transient properties from the vertices for (final VertexComputeKey computeKey : this.computeKeys.values()) { if (computeKey.isTransient()) { for (final Map<String, List<VertexProperty<?>>> properties : this.computeProperties.values()) { properties.remove(computeKey.getKey()); } } } }
public static boolean isTransientVertexComputeKey(final String key, final Set<VertexComputeKey> vertexComputeKeySet) { for (final VertexComputeKey vertexComputeKey : vertexComputeKeySet) { if (vertexComputeKey.getKey().equals(key)) return vertexComputeKey.isTransient(); } throw new IllegalArgumentException("Could not find key in vertex compute key set: " + key); }
protected void complete() { // remove all transient properties from the vertices for (final VertexComputeKey computeKey : this.computeKeys.values()) { if (computeKey.isTransient()) { for (final Map<String, List<VertexProperty<?>>> properties : this.computeProperties.values()) { properties.remove(computeKey.getKey()); } } } }
public static boolean isTransientVertexComputeKey(final String key, final Set<VertexComputeKey> vertexComputeKeySet) { for (final VertexComputeKey vertexComputeKey : vertexComputeKeySet) { if (vertexComputeKey.getKey().equals(key)) return vertexComputeKey.isTransient(); } throw new IllegalArgumentException("Could not find key in vertex compute key set: " + key); }
protected void complete() { // remove all transient properties from the vertices for (final VertexComputeKey computeKey : this.computeKeys.values()) { if (computeKey.isTransient()) { for (final Map<String, List<VertexProperty<?>>> properties : this.computeProperties.values()) { properties.remove(computeKey.getKey()); } } } }