log.trace("Vertex {} has unknown lifecycle state", vertexId); return null; } else if (!tv.edges(Direction.BOTH).hasNext() && !tv.properties().hasNext()) { log.trace("Vertex {} has no relations", vertexId); return null;
@Override public void remove() { if (null != this.vertex.properties && this.vertex.properties.containsKey(this.key)) { this.vertex.properties.get(this.key).remove(this); if (this.vertex.properties.get(this.key).size() == 0) { this.vertex.properties.remove(this.key); TinkerHelper.removeIndex(this.vertex, this.key, this.value); } final AtomicBoolean delete = new AtomicBoolean(true); this.vertex.properties(this.key).forEachRemaining(property -> { if (property.value().equals(this.value)) delete.set(false); }); if (delete.get()) TinkerHelper.removeIndex(this.vertex, this.key, this.value); this.properties = null; this.removed = true; } }
@Override public void remove() { if (null != this.vertex.properties && this.vertex.properties.containsKey(this.key)) { this.vertex.properties.get(this.key).remove(this); if (this.vertex.properties.get(this.key).size() == 0) { this.vertex.properties.remove(this.key); TinkerHelper.removeIndex(this.vertex, this.key, this.value); } final AtomicBoolean delete = new AtomicBoolean(true); this.vertex.properties(this.key).forEachRemaining(property -> { if (property.value().equals(this.value)) delete.set(false); }); if (delete.get()) TinkerHelper.removeIndex(this.vertex, this.key, this.value); this.properties = null; this.removed = true; } }
@Override public void remove() { if (null != this.vertex.properties && this.vertex.properties.containsKey(this.key)) { this.vertex.properties.get(this.key).remove(this); if (this.vertex.properties.get(this.key).size() == 0) { this.vertex.properties.remove(this.key); TinkerHelper.removeIndex(this.vertex, this.key, this.value); } final AtomicBoolean delete = new AtomicBoolean(true); this.vertex.properties(this.key).forEachRemaining(property -> { if (property.value().equals(this.value)) delete.set(false); }); if (delete.get()) TinkerHelper.removeIndex(this.vertex, this.key, this.value); this.properties = null; this.removed = true; } }
if (!tv.edges(Direction.BOTH).hasNext() && !tv.properties().hasNext()) { log.trace("Vertex {} has no relations", vertexId); return null;
log.trace("Vertex {} has unknown lifecycle state", vertexId); return null; } else if (!tv.edges(Direction.BOTH).hasNext() && !tv.properties().hasNext()) { log.trace("Vertex {} has no relations", vertexId); return null;
if (!tv.edges(Direction.BOTH).hasNext() && !tv.properties().hasNext()) { log.trace("Vertex {} has no relations", vertexId); return null;