public class GraphChangeSetImpl<VID> extends GraphBuilderImpl<VID> implements GraphChangeSet<VID>
| Modifier and Type | Method and Description |
|---|---|
GraphChangeSet<VID> |
removeEdge(long edgeId)
Removes an edge from the graph.
|
GraphChangeSet<VID> |
removeVertex(VID vertexId)
Removes a vertex from the graph.
|
GraphChangeSet<VID> |
resetEdge(long edgeId)
Resets any change for the edge with the given ID.
|
GraphChangeSet<VID> |
resetVertex(VertexBuilder<VID> vertex)
Resets any change for the given vertex.
|
GraphChangeSet<VID> |
resetVertex(VID vertexId)
Resets any change for the vertex with the given ID.
|
GraphChangeSet<VID> |
setAddExistingEdgePolicy(OnAddExistingElement addExistingEdgePolicy)
Sets the policy on what to do when an edge is added that already exists
|
GraphChangeSet<VID> |
setAddExistingVertexPolicy(OnAddExistingElement addExistingVertexPolicy)
Sets the policy on what to do when a vertex is added that already exists
|
java.lang.String |
toString() |
EdgeModifier<VID> |
updateEdge(long edgeId)
Returns a
EdgeModifier with which you can update edge properties and the edge label. |
VertexModifier<VID> |
updateVertex(VID vertexId)
Returns a
VertexModifier with which you can update vertex properties. |
addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, setConfigParameterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitsetRetainEdgeIds, setRetainIds, setRetainVertexIdsaddEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, setConfigParameterpublic GraphChangeSet<VID> removeEdge(long edgeId)
GraphChangeSetremoveEdge in interface GraphChangeSet<VID>edgeId - the ID of the edge to be removedpublic GraphChangeSet<VID> removeVertex(VID vertexId)
GraphChangeSetremoveVertex in interface GraphChangeSet<VID>vertexId - the ID of the vertex to be removedpublic GraphChangeSet<VID> resetEdge(long edgeId)
GraphBuilderresetEdge in interface GraphBuilder<VID>resetEdge in interface GraphChangeSet<VID>resetEdge in class GraphBuilderImpl<VID>edgeId - the ID of the edge which should be resetpublic GraphChangeSet<VID> resetVertex(VertexBuilder<VID> vertex)
GraphBuilderresetVertex in interface GraphBuilder<VID>resetVertex in interface GraphChangeSet<VID>resetVertex in class GraphBuilderImpl<VID>vertex - a VertexBuilderpublic GraphChangeSet<VID> resetVertex(VID vertexId)
GraphBuilderresetVertex in interface GraphBuilder<VID>resetVertex in interface GraphChangeSet<VID>resetVertex in class GraphBuilderImpl<VID>vertexId - the ID of the vertex which should be resetpublic GraphChangeSet<VID> setAddExistingEdgePolicy(OnAddExistingElement addExistingEdgePolicy)
GraphChangeSetsetAddExistingEdgePolicy in interface GraphChangeSet<VID>addExistingEdgePolicy - the new policypublic GraphChangeSet<VID> setAddExistingVertexPolicy(OnAddExistingElement addExistingVertexPolicy)
GraphChangeSetsetAddExistingVertexPolicy in interface GraphChangeSet<VID>addExistingVertexPolicy - the new policypublic java.lang.String toString()
toString in class GraphBuilderImpl<VID>public EdgeModifier<VID> updateEdge(long edgeId)
GraphChangeSetEdgeModifier with which you can update edge properties and the edge label.updateEdge in interface GraphChangeSet<VID>edgeId - the ID of the edge that should be updatedVertexModifier instancepublic VertexModifier<VID> updateVertex(VID vertexId)
GraphChangeSetVertexModifier with which you can update vertex properties. Throws an exception if the vertex has been removed with this graph change set before.updateVertex in interface GraphChangeSet<VID>vertexId - the ID of the vertex that should be updatedVertexModifier instanceCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.