public interface GraphChangeSet<VID> extends GraphBuilder<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
|
default GraphChangeSet<VID> |
setRetainEdgeIds(boolean retainEdgeIds)
Controls whether the edge ids provided in this graph builder are to be retained in the final graph.
|
default GraphChangeSet<VID> |
setRetainIds(boolean retainIds)
Controls for both vertex and edge ids whether to retain them in the final graph.
|
default GraphChangeSet<VID> |
setRetainVertexIds(boolean retainVertexIds)
Controls whether to retain the vertex ids provided in this graph builder are to be retained in the final graph.
|
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, setConfigParameter
GraphChangeSet<VID> removeEdge(long edgeId)
edgeId
- the ID of the edge to be removedGraphChangeSet<VID> removeVertex(VID vertexId)
vertexId
- the ID of the vertex to be removedGraphChangeSet<VID> resetEdge(long edgeId)
GraphBuilder
resetEdge
in interface GraphBuilder<VID>
edgeId
- the ID of the edge which should be resetGraphChangeSet<VID> resetVertex(VertexBuilder<VID> vertex)
GraphBuilder
resetVertex
in interface GraphBuilder<VID>
vertex
- a VertexBuilder
GraphChangeSet<VID> resetVertex(VID vertexId)
GraphBuilder
resetVertex
in interface GraphBuilder<VID>
vertexId
- the ID of the vertex which should be resetGraphChangeSet<VID> setAddExistingEdgePolicy(OnAddExistingElement addExistingEdgePolicy)
addExistingEdgePolicy
- the new policyGraphChangeSet<VID> setAddExistingVertexPolicy(OnAddExistingElement addExistingVertexPolicy)
addExistingVertexPolicy
- the new policydefault GraphChangeSet<VID> setRetainEdgeIds(boolean retainEdgeIds)
GraphBuilder
true
retain the edge ids, if false
use internally generated edge ids.setRetainEdgeIds
in interface GraphBuilder<VID>
retainEdgeIds
- whether or not to retain edge idsdefault GraphChangeSet<VID> setRetainIds(boolean retainIds)
GraphBuilder
setRetainIds
in interface GraphBuilder<VID>
retainIds
- whether or not to retain vertex and edge idsGraphBuilder.setRetainEdgeIds(boolean)
, GraphBuilder.setRetainVertexIds(boolean)
default GraphChangeSet<VID> setRetainVertexIds(boolean retainVertexIds)
GraphBuilder
true
retain the vertex ids, if false
use internally generated vertex ids of type Integer
setRetainVertexIds
in interface GraphBuilder<VID>
retainVertexIds
- whether or not to retain vertex idsEdgeModifier<VID> updateEdge(long edgeId)
EdgeModifier
with which you can update edge properties and the edge label.edgeId
- the ID of the edge that should be updatedVertexModifier
instanceVertexModifier<VID> updateVertex(VID vertexId)
VertexModifier
with which you can update vertex properties. Throws an exception if the vertex has been removed with this graph change set before.vertexId
- the ID of the vertex that should be updatedVertexModifier
instanceCopyright © 2017 Oracle Corp. All Rights Reserved.