Package oracle.pgx.api
Interface VertexBuilder<VID>
- Type Parameters:
VID- the vertex ID type
- All Superinterfaces:
GraphBuilder<VID>
- All Known Subinterfaces:
VertexModifier<VID>
- All Known Implementing Classes:
VertexBuilderImpl,VertexModifierImpl
A vertex builder for defining vertices added with the
GraphBuilderImpl.- See Also:
-
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.setProperty(String key, Object value) Sets the property value of this vertex with the givenkeyto the givenvalue.Methods inherited from interface oracle.pgx.api.GraphBuilder
addEdge, addEdge, addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, partitionedEdgeIds, partitionedVertexIds, resetEdge, resetEdge, resetVertex, resetVertex, setDataSourceVersion, setEdgeIdGenerationStrategy, setRetainEdgeIds, setRetainIds, setRetainVertexIds, setVertexIdGenerationStrategy
-
Method Details
-
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.- Parameters:
key- the property keyvalue- the value of the vertex property- Returns:
- this vertex builder
-
addLabel
Adds the given label to this vertex- Parameters:
label- the label to be added- Returns:
- this vertex builder
-
getId
VID getId()Gets the id of the element (vertex or edge) this builder belongs to- Returns:
- the id of the element
-
isIgnored
boolean isIgnored()Whether 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.- Returns:
- whether method calls are ignored
- Since:
- 20.2.0
-