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 vertexVIDgetId()Gets the id of the element (vertex or edge) this builder belongs tobooleanisIgnored()Whether this vertex builder ignores method callstrueor 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 givenkeyto 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:VertexBuilderWhether this vertex builder ignores method callstrueor 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:
isIgnoredin interfaceVertexBuilder<VID>- Returns:
- whether method calls are ignored
-
removeLabel
public VertexModifier<VID> removeLabel(java.lang.String label)
Description copied from interface:VertexModifierRemoves the given label from the vertex.- Specified by:
removeLabelin 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 givenkeyto the givenvalue. The first time this method is called, the type ofvaluedefines the type of the property.- Specified by:
setPropertyin interfaceVertexBuilder<VID>- Specified by:
setPropertyin 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:
addLabelin interfaceVertexBuilder<VID>- Specified by:
addLabelin 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:
getIdin interfaceVertexBuilder<VID>- Specified by:
getIdin interfaceVertexModifier<VID>- Returns:
- the id of the element
-
-