public class EdgeModifierImpl<VID> extends GraphChangeSetImpl<VID> implements EdgeModifier<VID>
Constructor and Description |
---|
EdgeModifierImpl(GraphChangeSetImpl<VID> base, long id) |
EdgeModifierImpl(GraphChangeSetImpl<VID> base, long id, boolean isIgnored) |
Modifier and Type | Method and Description |
---|---|
long |
getId()
Gets the id of the element (vertex or edge) this builder belongs to
|
boolean |
isIgnored()
Whether this edge builder ignores method calls
true or if it performs calls as usual false . |
EdgeModifier<VID> |
setLabel(java.lang.String label)
Sets the new value of the label
|
EdgeModifier<VID> |
setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this edge with the given
key to the given value . |
addEdge, addEdge, addVertex, buildNewSnapshotAsync, removeEdge, removeVertex, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, toString, updateEdge, updateVertex
addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, setConfigParameter, setDataSourceVersion
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdge, addEdge, addVertex, addVertex, buildNewSnapshot, buildNewSnapshotAsync, removeEdge, removeVertex, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, setRetainEdgeIds, setRetainIds, setRetainVertexIds, updateEdge, updateVertex
addEdge, addEdge, build, build, buildAsync, buildAsync, getConfigParameter, setConfigParameter, setDataSourceVersion
public EdgeModifierImpl(GraphChangeSetImpl<VID> base, long id)
public EdgeModifierImpl(GraphChangeSetImpl<VID> base, long id, boolean isIgnored)
public long getId()
EdgeBuilder
getId
in interface EdgeBuilder<VID>
public boolean isIgnored()
EdgeBuilder
true
or if it performs calls as usual false
. Some issues, such as incompatible changes in a ChangeSet, can be configured to be ignored. In that case, additional method calls on the returned edge builder object will be ignored.isIgnored
in interface EdgeBuilder<VID>
public EdgeModifier<VID> setLabel(java.lang.String label)
EdgeBuilder
setLabel
in interface EdgeBuilder<VID>
setLabel
in interface EdgeModifier<VID>
label
- the new value of the labelpublic EdgeModifier<VID> setProperty(java.lang.String key, java.lang.Object value)
EdgeBuilder
key
to the given value
. The first time this method is called, the type of value
defines the type of the property.setProperty
in interface EdgeBuilder<VID>
setProperty
in interface EdgeModifier<VID>
key
- the property keyvalue
- the value of the vertex property