Package org.apache.tinkerpop.gremlin.gql
Class QueryEdge
java.lang.Object
org.apache.tinkerpop.gremlin.gql.QueryEdge
Represents an edge pattern element in a GQL MATCH clause. An edge connects a source
QueryVertex to a target QueryVertex with an optional variable name, optional
label constraint, a traversal direction, and optional property predicates on the edge itself.
Direction semantics follow the GQL arrow notation:
-[:L]->isDirection.OUT— edge goes from source to target<-[:L]-isDirection.IN— edge goes from target to source-[:L]-isDirection.BOTH— undirected, either direction matches
-
Constructor Summary
ConstructorsConstructorDescriptionQueryEdge(String variable, String label, Direction direction, QueryVertex source, QueryVertex target) QueryEdge(String variable, String label, Direction direction, QueryVertex source, QueryVertex target, List<PropertyPredicate> predicates) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Returns the label constraint for this edge, ornullif unconstrained.Returns the property equality predicates on this edge, or an empty list if none were specified.Returns the source (left-hand) vertex of this edge pattern.Returns the target (right-hand) vertex of this edge pattern.Returns the variable name bound to this edge, ornullif anonymous.toString()
-
Constructor Details
-
QueryEdge
public QueryEdge(String variable, String label, Direction direction, QueryVertex source, QueryVertex target, List<PropertyPredicate> predicates) -
QueryEdge
public QueryEdge(String variable, String label, Direction direction, QueryVertex source, QueryVertex target)
-
-
Method Details
-
getVariable
Returns the variable name bound to this edge, ornullif anonymous. -
getLabel
Returns the label constraint for this edge, ornullif unconstrained. -
getDirection
-
getSource
Returns the source (left-hand) vertex of this edge pattern. -
getTarget
Returns the target (right-hand) vertex of this edge pattern. -
getPredicates
Returns the property equality predicates on this edge, or an empty list if none were specified. -
toString
-