public class VertexModifierImpl<VID> extends GraphChangeSetImpl<VID> implements VertexModifier<VID>
Constructor and Description |
---|
VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id) |
VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id, boolean isIgnored) |
Modifier and Type | Method and Description |
---|---|
VertexModifier<VID> |
addLabel(java.lang.String label)
Adds the given label to this vertex
|
VID |
getId()
Gets the id of the element (vertex or edge) this builder belongs to
|
boolean |
isIgnored()
Whether this vertex builder ignores method calls
true or if it performs calls as usual false . |
VertexModifier<VID> |
removeLabel(java.lang.String label)
Removes the given label from the vertex.
|
VertexModifier<VID> |
setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this vertex 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 VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id)
public VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id, boolean isIgnored)
public VertexModifier<VID> addLabel(java.lang.String label)
addLabel
in interface VertexBuilder<VID>
addLabel
in interface VertexModifier<VID>
label
- the label to be addedpublic VID getId()
getId
in interface VertexBuilder<VID>
getId
in interface VertexModifier<VID>
public boolean isIgnored()
VertexBuilder
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 vertex builder object will be ignored.isIgnored
in interface VertexBuilder<VID>
public VertexModifier<VID> removeLabel(java.lang.String label)
VertexModifier
removeLabel
in interface VertexModifier<VID>
label
- the label value to removepublic VertexModifier<VID> setProperty(java.lang.String key, java.lang.Object value)
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 VertexBuilder<VID>
setProperty
in interface VertexModifier<VID>
key
- the property keyvalue
- the value of the vertex property