Package org.apache.tinkerpop.gremlin.gql
Class QueryVertex
java.lang.Object
org.apache.tinkerpop.gremlin.gql.QueryVertex
Represents a vertex pattern element in a GQL MATCH clause. A vertex may have an optional
variable name for result binding, an optional label constraint for filtering, and an
optional list of property predicates from an inline filter map.
All fields are nullable/empty: an anonymous vertex
() has neither variable nor label.-
Constructor Summary
ConstructorsConstructorDescriptionQueryVertex(String variable, String label) QueryVertex(String variable, String label, List<PropertyPredicate> predicates) -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()Returns the label constraint for this vertex, ornullif unconstrained.Returns the property predicates parsed from the inline filter map, or an empty list if no property filter was specified.Returns the variable name bound to this vertex, ornullif anonymous.toString()
-
Constructor Details
-
QueryVertex
-
QueryVertex
-
-
Method Details
-
getVariable
Returns the variable name bound to this vertex, ornullif anonymous. -
getLabel
Returns the label constraint for this vertex, ornullif unconstrained. -
getPredicates
Returns the property predicates parsed from the inline filter map, or an empty list if no property filter was specified. -
toString
-