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, updateVertexaddEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, setConfigParameterequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEdge, addEdge, addVertex, addVertex, buildNewSnapshot, buildNewSnapshotAsync, removeEdge, removeVertex, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, setRetainEdgeIds, setRetainIds, setRetainVertexIds, updateEdge, updateVertexaddEdge, addEdge, build, build, buildAsync, buildAsync, getConfigParameter, setConfigParameterpublic 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()
VertexBuildertrue 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)
VertexModifierremoveLabel 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 propertyCopyright © 2010, 2020 Oracle and/or its affiliates. All Rights Reserved.