Class TinkerEdge
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
- 
- org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerEdge
 
 
- 
 public final class TinkerEdge extends TinkerElement implements Edge - Author:
- Marko A. Rodriguez (http://markorodriguez.com)
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.EdgeEdge.Exceptions
 - 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.ElementElement.Exceptions
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected VertexinVertexprotected VertexoutVertexprotected Map<String,Property>properties- 
Fields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElementid, label, removed
 - 
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.EdgeDEFAULT_LABEL
 
- 
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedTinkerEdge(Object id, Vertex outVertex, String label, Vertex inVertex)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Graphgraph()Get the graph that this element is within.VertexinVertex()Get the incoming/head vertex of this edge.Set<String>keys()Get the keys of the properties associated with this element.VertexoutVertex()Get the outgoing/tail vertex of this edge.<V> Iterator<Property<V>>properties(String... propertyKeys)Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.<V> Property<V>property(String key)Get aPropertyfor theElementgiven its key.<V> Property<V>property(String key, V value)Add or set a property value for theElementgiven its key.voidremove()Removes theElementfrom the graph.StringtoString()Iterator<Vertex>vertices(Direction direction)Retrieve the vertex (or vertices) associated with this edge as defined by the direction.- 
Methods inherited from class org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElementelementAlreadyRemoved, equals, hashCode, id, label
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.EdgebothVertices
 
- 
 
- 
- 
- 
Method Detail- 
propertypublic <V> Property<V> property(String key, V value) Description copied from interface:ElementAdd or set a property value for theElementgiven its key.
 - 
propertypublic <V> Property<V> property(String key) Description copied from interface:ElementGet aPropertyfor theElementgiven its key. The default implementation calls the rawElement.properties(java.lang.String...).
 - 
keyspublic Set<String> keys() Description copied from interface:ElementGet the keys of the properties associated with this element. The default implementation iterators the properties and stores the keys into aHashSet.
 - 
removepublic void remove() Description copied from interface:ElementRemoves theElementfrom the graph.
 - 
outVertexpublic Vertex outVertex() Description copied from interface:EdgeGet the outgoing/tail vertex of this edge.
 - 
inVertexpublic Vertex inVertex() Description copied from interface:EdgeGet the incoming/head vertex of this edge.
 - 
verticespublic Iterator<Vertex> vertices(Direction direction) 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.
 - 
graphpublic Graph graph() Description copied from interface:ElementGet the graph that this element is within.
 - 
propertiespublic <V> Iterator<Property<V>> properties(String... propertyKeys) 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 interface- Edge
- Specified by:
- propertiesin interface- Element
 
 
- 
 
-