public class EdgeBuilderImpl<VID> extends GraphBuilderImpl<VID> implements EdgeBuilder<VID>
Constructor and Description |
---|
EdgeBuilderImpl(GraphBuilderImpl<VID> base,
long id)
Constructs a
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
long |
getId()
Gets the id of the element (vertex or edge) this builder belongs to
|
int |
hashCode() |
EdgeBuilder<VID> |
setLabel(java.lang.String label)
Sets the new value of the label
|
EdgeBuilder<VID> |
setProperty(java.lang.String key,
java.lang.Object value)
Sets the property value of this edge with the given
key to the given value . |
addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, getSession, resetEdge, resetVertex, resetVertex, setConfigParameter, toString
addEdge, addEdge, addEdge, addEdge, addVertex, addVertex, build, build, buildAsync, buildAsync, getConfigParameter, resetEdge, resetVertex, resetVertex, setConfigParameter, setRetainEdgeIds, setRetainIds, setRetainVertexIds
public EdgeBuilderImpl(GraphBuilderImpl<VID> base, long id)
base
- id
- public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public long getId()
EdgeBuilder
getId
in interface EdgeBuilder<VID>
public int hashCode()
hashCode
in class java.lang.Object
public EdgeBuilder<VID> setLabel(java.lang.String label)
EdgeBuilder
setLabel
in interface EdgeBuilder<VID>
label
- the new value of the labelpublic EdgeBuilder<VID> setProperty(java.lang.String key, java.lang.Object value)
EdgeBuilder
key
to the given value
.
The first time this method is called, the type of value
defines the type of the property.setProperty
in interface EdgeBuilder<VID>
key
- the property keyvalue
- the value of the vertex propertyCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.