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>
-
Constructor Summary
ConstructorsConstructorDescriptionVertexModifierImpl(GraphChangeSetImpl<VID> base, VID id) VertexModifierImpl(GraphChangeSetImpl<VID> base, VID id, boolean isIgnored) -
Method Summary
Modifier and TypeMethodDescriptionAdds the given label to this vertexgetId()Gets the id of the element (vertex or edge) this builder belongs tobooleanWhether this vertex builder ignores method callstrueor if it performs calls as usualfalse.removeLabel(String label) Removes the given label from the vertex.setProperty(String key, Object value) Sets the property value of this vertex with the givenkeyto the givenvalue.Methods inherited from class GraphChangeSetImpl
addEdge, addEdge, addEdge, addVertex, buildNewSnapshotAsync, getEdgeChangeType, getVertexChangeType, partitionedEdgeIds, partitionedVertexIds, removeEdge, removeEdge, removeVertex, resetEdge, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, toString, updateEdge, updateEdge, updateVertexMethods inherited from class GraphBuilderImpl
addEdge, addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, isGraphBuilderConfigFinalized, setDataSourceVersion, setEdgeIdGenerationStrategy, setRetainEdgeIds, setRetainVertexIds, setVertexIdGenerationStrategyMethods inherited from interface GraphBuilder
addEdge, addEdge, build, build, buildAsync, buildAsync, getConfigParameter, partitionedEdgeIds, partitionedVertexIds, setDataSourceVersion, setEdgeIdGenerationStrategy, setRetainEdgeIds, setRetainVertexIds, setVertexIdGenerationStrategyMethods inherited from interface GraphChangeSet
addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, buildNewSnapshot, buildNewSnapshotAsync, getEdgeChangeType, getVertexChangeType, removeEdge, removeEdge, removeVertex, resetEdge, resetEdge, resetVertex, resetVertex, setAddExistingEdgePolicy, setAddExistingVertexPolicy, setInvalidChangePolicy, setRequiredConversionPolicy, setRetainIds, updateEdge, updateEdge, updateVertex
-
Constructor Details
-
VertexModifierImpl
-
VertexModifierImpl
-
-
Method Details
-
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
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
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
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
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
-