Class TinkerEdge
java.lang.Object
org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerEdge
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Nested Class Summary
Nested 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
FieldsModifier and TypeFieldDescriptionprotected Vertexprotected Objectprotected Vertexprotected ObjectFields inherited from class org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerElement
currentVersion, id, label, removedFields inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
DEFAULT_LABEL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTinkerEdge(Object id, Vertex outVertex, String label, Vertex inVertex) protectedTinkerEdge(Object id, Vertex outVertex, String label, Vertex inVertex, long currentVersion) protectedprotected -
Method Summary
Modifier and TypeMethodDescriptionclone()graph()Get the graph that this element is within.inVertex()Get the incoming/head vertex of this edge.keys()Get the keys of the properties associated with this element.label()Deprecated.labels()Gets all labels for this element.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>Get aPropertyfor theElementgiven its key.<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.tinkergraph.structure.TinkerElement
elementAlreadyRemoved, equals, hashCode, id, versionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
bothVerticesMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
addLabel, dropLabel, dropLabels, id, propertyMap, value, values
-
Field Details
-
edgeLabels
-
properties
-
inVertex
-
inVertexId
-
outVertex
-
outVertexId
-
-
Constructor Details
-
TinkerEdge
-
TinkerEdge
-
TinkerEdge
-
TinkerEdge
-
-
Method Details
-
property
Description copied from interface:ElementAdd or set a property value for theElementgiven its key. -
property
Description copied from interface:ElementGet aPropertyfor theElementgiven its key. The default implementation calls the rawElement.properties(java.lang.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. -
labels
Description copied from interface:ElementGets all labels for this element.For
Vertex: may return zero or more labels (multi-label support). ForEdge: returns a singleton set (single label only in TinkerGraph). ForVertexProperty: returns a singleton set containing the property key. -
label
Deprecated.Description copied from interface:ElementGets the label for the graphElementwhich helps categorize it.- Specified by:
labelin interfaceElement- Overrides:
labelin classTinkerElement- Returns:
- The label of the element
-
remove
public void remove()Description copied from interface:ElementRemoves theElementfrom the graph. -
toString
-
clone
- Specified by:
clonein classTinkerElement
-
outVertex
Description copied from interface:EdgeGet the outgoing/tail vertex of this edge. -
inVertex
Description copied from interface:EdgeGet the incoming/head vertex of this edge. -
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. -
graph
Description copied from interface:ElementGet the graph that this element is within. -
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
-