Class ReferenceEdge
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceElement<Edge>
org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceEdge
- All Implemented Interfaces:
Serializable,Edge,Element,Attachable<Edge>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
Attachable.Exceptions, Attachable.MethodNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
Edge.ExceptionsNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.Element
Element.Exceptions -
Field Summary
Fields inherited from class org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceElement
id, labelFields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
loggerFields inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
DEFAULT_LABEL -
Constructor Summary
ConstructorsConstructorDescriptionReferenceEdge(Object id, String label, ReferenceVertex inVertex, ReferenceVertex outVertex) ReferenceEdge(Object id, Set<String> labels, ReferenceVertex inVertex, ReferenceVertex outVertex) ReferenceEdge(Edge edge) -
Method Summary
Modifier and TypeMethodDescriptioninVertex()Get the incoming/head vertex of this edge.Get the outgoing/tail vertex of this edge.properties(String... propertyKeys) Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.<V> Property<V>Add or set a property value for theElementgiven its key.voidremove()Removes theElementfrom the graph.toString()Retrieve the vertex (or vertices) associated with this edge as defined by the direction.Methods inherited from class org.apache.tinkerpop.gremlin.structure.util.reference.ReferenceElement
equals, get, graph, hashCode, id, label, labelsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
attachMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
bothVertices
-
Constructor Details
-
ReferenceEdge
-
ReferenceEdge
-
ReferenceEdge
public ReferenceEdge(Object id, Set<String> labels, ReferenceVertex inVertex, ReferenceVertex outVertex)
-
-
Method Details
-
property
Description copied from interface:ElementAdd or set a property value for theElementgiven its key. -
remove
public void remove()Description copied from interface:ElementRemoves theElementfrom the graph. -
vertices
Description copied from interface:EdgeRetrieve the vertex (or vertices) associated with this edge as defined by the direction. If the direction isDirection.BOTHthen the iterator order is:Direction.OUTthenDirection.IN. -
inVertex
Description copied from interface:EdgeGet the incoming/head vertex of this edge. -
outVertex
Description copied from interface:EdgeGet the outgoing/tail vertex of this edge. -
properties
Description copied from interface:EdgeGet anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys. If no keys are provide then return all the properties.- Specified by:
propertiesin interfaceEdge- Specified by:
propertiesin interfaceElement
-
toString
-