Class QueryVertex

java.lang.Object
org.apache.tinkerpop.gremlin.gql.QueryVertex

public final class QueryVertex extends Object
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 Details

  • Method Details

    • getVariable

      public String getVariable()
      Returns the variable name bound to this vertex, or null if anonymous.
    • getLabel

      public String getLabel()
      Returns the label constraint for this vertex, or null if unconstrained.
    • getPredicates

      public List<PropertyPredicate> getPredicates()
      Returns the property predicates parsed from the inline filter map, or an empty list if no property filter was specified.
    • toString

      public String toString()
      Overrides:
      toString in class Object