Class DetachedEdge
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.detached.DetachedElement<Edge>
org.apache.tinkerpop.gremlin.structure.util.detached.DetachedEdge
- All Implemented Interfaces:
Serializable,Edge,Element,Attachable<Edge>
Represents an
Edge that is disconnected from a Graph. "Disconnection" can mean detachment from
a Graph in the sense that the Edge was constructed from a Graph instance and this reference
was removed or it can mean that the DetachedEdge could have been constructed independently of a
Graph instance in the first place.
A DetachedEdge only has reference to the properties and in/out vertices that are associated with it at the
time of detachment (or construction) and is not traversable or mutable. Note that the references to the in/out
vertices are DetachedVertex instances that only have reference to the
Element.id() and Element.label().- Author:
- Stephen Mallette (http://stephen.genoprime.com), Marko A. Rodriguez (http://markorodriguez.com)
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.detached.DetachedElement
id, label, propertiesFields inherited from interface org.apache.tinkerpop.gremlin.structure.util.Attachable
loggerFields inherited from interface org.apache.tinkerpop.gremlin.structure.Edge
DEFAULT_LABEL -
Constructor Summary
ConstructorsModifierConstructorDescriptionDetachedEdge(Object id, String label, List<Property> properties, Object outVId, String outVLabel, Object inVId, String inVLabel) DetachedEdge(Object id, String label, Map<String, Object> properties, Object outVId, String outVLabel, Object inVId, String inVLabel) protectedDetachedEdge(Edge edge, boolean withProperties) -
Method Summary
Modifier and TypeMethodDescriptionstatic DetachedEdge.Builderbuild()Provides a way to construct an immutableDetachedEdge.inVertex()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.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.detached.DetachedElement
equals, get, graph, hashCode, id, label, labels, property, propertyMethods 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
-
DetachedEdge
-
DetachedEdge
-
DetachedEdge
-
-
Method Details
-
toString
-
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. -
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. -
remove
public void remove()Description copied from interface:ElementRemoves theElementfrom the graph. -
properties
Description copied from interface:ElementGet 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- Overrides:
propertiesin classDetachedElement<Edge>
-
build
Provides a way to construct an immutableDetachedEdge.
-