Class CypherUnionQueryImpl

java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.query.impl.CypherUnionQueryImpl
All Implemented Interfaces:
CypherQuery, CypherUnionQuery

public class CypherUnionQueryImpl extends Object implements CypherUnionQuery
  • Constructor Details

    • CypherUnionQueryImpl

      public CypherUnionQueryImpl()
    • CypherUnionQueryImpl

      public CypherUnionQueryImpl(CypherMatchQuery... queries)
    • CypherUnionQueryImpl

      public CypherUnionQueryImpl(List<CypherMatchQuery> result)
  • Method Details

    • getSubqueries

      public List<CypherMatchQuery> getSubqueries()
      Description copied from interface: CypherUnionQuery
      Returns the list of MATCH Cypher queries that are part of the union of the modelled query. For the example query, this method returns a list with two elements, one representing each MATCH query.
      Specified by:
      getSubqueries in interface CypherUnionQuery
      Returns:
      a List of CypherMatchQuery objects
    • getMatchVars

      public Set<CypherVar> getMatchVars()
      Description copied from interface: CypherQuery
      Returns the set of variables that are defined in the MATCH clauses of this query.
      Specified by:
      getMatchVars in interface CypherQuery
    • toString

      public String toString()
      Description copied from interface: CypherQuery
      Returns a Cypher expression representing this query.
      Specified by:
      toString in interface CypherQuery
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object