@Override public void softDeleteVertex(Vertex vertex, Long timestamp, Authorizations authorizations) { checkNotNull(vertex, "vertex cannot be null"); Span trace = Trace.start("softDeleteVertex"); trace.data("vertexId", vertex.getId()); try { if (timestamp == null) { timestamp = IncreasingTime.currentTimeMillis(); } getSearchIndex().deleteElement(this, vertex, authorizations); // Delete all edges that this vertex participates. for (Edge edge : vertex.getEdges(Direction.BOTH, authorizations)) { softDeleteEdge(edge, timestamp, authorizations); } addMutations(VertexiumObjectType.VERTEX, getSoftDeleteRowMutation(vertex.getId(), timestamp)); if (hasEventListeners()) { queueEvent(new SoftDeleteVertexEvent(this, vertex)); } } finally { trace.stop(); } }
@Override public void softDeleteVertex(Vertex vertex, Long timestamp, Authorizations authorizations) { checkNotNull(vertex, "vertex cannot be null"); Span trace = Trace.start("softDeleteVertex"); trace.data("vertexId", vertex.getId()); try { if (timestamp == null) { timestamp = IncreasingTime.currentTimeMillis(); } getSearchIndex().deleteElement(this, vertex, authorizations); // Delete all edges that this vertex participates. for (Edge edge : vertex.getEdges(Direction.BOTH, authorizations)) { softDeleteEdge(edge, timestamp, authorizations); } addMutations(VertexiumObjectType.VERTEX, getSoftDeleteRowMutation(vertex.getId(), timestamp)); if (hasEventListeners()) { queueEvent(new SoftDeleteVertexEvent(this, vertex)); } } finally { trace.stop(); } }
@Override public void softDeleteVertex(Vertex vertex, Long timestamp, Authorizations authorizations) { if (!((InMemoryVertex) vertex).canRead(authorizations)) { return; } if (timestamp == null) { timestamp = IncreasingTime.currentTimeMillis(); } for (Property property : vertex.getProperties()) { vertex.softDeleteProperty(property.getKey(), property.getName(), property.getVisibility(), authorizations); } List<Edge> edgesToSoftDelete = IterableUtils.toList(vertex.getEdges(Direction.BOTH, authorizations)); for (Edge edgeToSoftDelete : edgesToSoftDelete) { softDeleteEdge(edgeToSoftDelete, timestamp, authorizations); } this.vertices.getTableElement(vertex.getId()).appendSoftDeleteMutation(timestamp); getSearchIndex().deleteElement(this, vertex, authorizations); if (hasEventListeners()) { fireGraphEvent(new SoftDeleteVertexEvent(this, vertex)); } }
@Override public int hashCode() { return getVertex().hashCode(); }
@Override public int hashCode() { return getVertex().hashCode(); }