Package oracle.pgx.api
Interface EdgeBuilder<VID>
-
- Type Parameters:
VID
- the vertex ID type
- All Superinterfaces:
GraphBuilder<VID>
- All Known Subinterfaces:
EdgeModifier<VID>
- All Known Implementing Classes:
EdgeBuilderImpl
,EdgeModifierImpl
public interface EdgeBuilder<VID> extends GraphBuilder<VID>
An edge builder for defining edges added with theGraphBuilderImpl
.- See Also:
GraphBuilderImpl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getId()
Gets the id of the element (vertex or edge) this builder belongs toboolean
isIgnored()
Whether this edge builder ignores method callstrue
or if it performs calls as usualfalse
.EdgeBuilder<VID>
setLabel(java.lang.String label)
Sets the new value of the labelEdgeBuilder<VID>
setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this edge with the givenkey
to 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 Detail
-
setProperty
EdgeBuilder<VID> setProperty(java.lang.String key, java.lang.Object value)
Sets the property value of this edge with the givenkey
to the givenvalue
. The first time this method is called, the type ofvalue
defines the type of the property.- Parameters:
key
- the property keyvalue
- the value of the vertex property- Returns:
- this vertex builder
-
setLabel
EdgeBuilder<VID> setLabel(java.lang.String label)
Sets the new value of the label- Parameters:
label
- the new value of the label- Returns:
- this edge builder
-
getId
long 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 edge 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 edge builder object will be ignored.- Returns:
- whether method calls are ignored
- Since:
- 20.2.0
-
-