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 |
---|---|
long |
getId()
Gets the id of the element (vertex or edge) this builder belongs to
|
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, addVertex, build, build, buildAsync, buildAsync, getSession, resetEdge, resetVertex, resetVertex, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEdge, addEdge, addVertex, build, build, buildAsync, buildAsync, resetEdge, resetVertex, resetVertex
public EdgeBuilderImpl(GraphBuilderImpl<VID> base, long id)
base
-id
-public long getId()
EdgeBuilder
getId
in interface EdgeBuilder<VID>
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 © 2016, 2017 Oracle Corp. All Rights Reserved.