Package oracle.pgx.api.graphbuilder
Class VertexModifierImpl<VID>
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.GraphBuilderImpl<VID>
-
- oracle.pgx.api.GraphChangeSetImpl<VID>
-
- oracle.pgx.api.graphbuilder.VertexModifierImpl<VID>
-
- All Implemented Interfaces:
GraphBuilder<VID>
,GraphChangeSet<VID>
,VertexBuilder<VID>
,VertexModifier<VID>
public class VertexModifierImpl<VID> extends GraphChangeSetImpl<VID> implements VertexModifier<VID>
-
-
Constructor Summary
Constructors Constructor Description VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id)
VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id, boolean isIgnored)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VertexModifier<VID>
addLabel(java.lang.String label)
Adds the given label to this vertexVID
getId()
Gets the id of the element (vertex or edge) this builder belongs toboolean
isIgnored()
Whether this vertex builder ignores method callstrue
or if it performs calls as usualfalse
.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 givenkey
to the givenvalue
.-
Methods inherited from class oracle.pgx.api.GraphChangeSetImpl
addEdge, addEdge, addEdge, addVertex, buildNewSnapshotAsync, getEdgeChangeType, getVertexChangeType, removeEdge, removeEdge, removeVertex, resetEdge, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, toString, updateEdge, updateEdge, updateVertex
-
Methods inherited from class oracle.pgx.api.GraphBuilderImpl
addEdge, addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, setConfigParameter, setDataSourceVersion
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface oracle.pgx.api.GraphBuilder
addEdge, addEdge, build, build, buildAsync, buildAsync, getConfigParameter, setConfigParameter, setDataSourceVersion
-
Methods inherited from interface oracle.pgx.api.GraphChangeSet
addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, buildNewSnapshot, buildNewSnapshotAsync, getEdgeChangeType, getVertexChangeType, removeEdge, removeEdge, removeVertex, resetEdge, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, setRetainEdgeIds, setRetainIds, setRetainVertexIds, updateEdge, updateEdge, updateVertex
-
-
-
-
Constructor Detail
-
VertexModifierImpl
public VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id)
-
VertexModifierImpl
public VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id, boolean isIgnored)
-
-
Method Detail
-
isIgnored
public boolean isIgnored()
Description copied from interface:VertexBuilder
Whether this vertex builder ignores method callstrue
or if it performs calls as usualfalse
. 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.- Specified by:
isIgnored
in interfaceVertexBuilder<VID>
- Returns:
- whether method calls are ignored
-
removeLabel
public VertexModifier<VID> removeLabel(java.lang.String label)
Description copied from interface:VertexModifier
Removes the given label from the vertex.- Specified by:
removeLabel
in interfaceVertexModifier<VID>
- Parameters:
label
- the label value to remove- Returns:
- this vertex modifier
-
setProperty
public VertexModifier<VID> setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this vertex with the givenkey
to the givenvalue
. The first time this method is called, the type ofvalue
defines the type of the property.- Specified by:
setProperty
in interfaceVertexBuilder<VID>
- Specified by:
setProperty
in interfaceVertexModifier<VID>
- Parameters:
key
- the property keyvalue
- the value of the vertex property- Returns:
- this vertex builder
-
addLabel
public VertexModifier<VID> addLabel(java.lang.String label)
Adds the given label to this vertex- Specified by:
addLabel
in interfaceVertexBuilder<VID>
- Specified by:
addLabel
in interfaceVertexModifier<VID>
- Parameters:
label
- the label to be added- Returns:
- this vertex builder
-
getId
public VID getId()
Gets the id of the element (vertex or edge) this builder belongs to- Specified by:
getId
in interfaceVertexBuilder<VID>
- Specified by:
getId
in interfaceVertexModifier<VID>
- Returns:
- the id of the element
-
-