Interface CypherMatchQuery
- All Superinterfaces:
 CypherQuery
- All Known Implementing Classes:
 CypherMatchQueryImpl
Represents a Cypher Query with a MATCH-WHERE-RETURN structure,
 For example, the query:
 MATCH (x)
 MATCH (a)-[b]->(c)
 WHERE a:CLASS AND b.property='value'
 UNWIND KEYS(a) AS k
 RETURN x AS n1, c AS n2, k AS key
 can be represented with this interface.
- 
Method Summary
Modifier and TypeMethodDescriptionReturns a list with the aliases of each of theAliasedExpressionobjects contained by this queryObtains a list of conditions, such that their conjunction represents the condition imposed in the WHERE clause of the query.Obtains a list of iterator expressions, of the form list AS var, present on the query.Obtains the list of the patterns to be matched in the query.Obtains a list of expressions with optional aliases that represent the columns being returned by the query.getUvars()Returns a Set with all the aliases of theUnwindIteratorobjects contained by this queryMethods inherited from interface se.liu.ida.hefquin.engine.wrappers.lpg.query.CypherQuery
getMatchVars, toString 
- 
Method Details
- 
getMatches
List<MatchClause> getMatches()Obtains the list of the patterns to be matched in the query. For the example query, this method returns a list with 2 elements, one representing each MATCH statement.- Returns:
 - a list of MatchClause objects
 
 - 
getConditions
List<BooleanCypherExpression> getConditions()Obtains a list of conditions, such that their conjunction represents the condition imposed in the WHERE clause of the query. For the example query, this method returns a list of 2 conditions, representing a:CLASS and b.property='value'.- Returns:
 - a list of WhereCondition objects
 
 - 
getIterators
List<UnwindIterator> getIterators()Obtains a list of iterator expressions, of the form list AS var, present on the query. For the example query, this method returns a list of one iterator: KEYS(a) AS k- Returns:
 - a list of UnwindIterator objects
 
 - 
getReturnExprs
List<AliasedExpression> getReturnExprs()Obtains a list of expressions with optional aliases that represent the columns being returned by the query. For the example query, this method returns a list with 2 elements, representing the 2 columns being returned- Returns:
 - a list of ReturnStatement objects
 
 - 
getAliases
Returns a list with the aliases of each of theAliasedExpressionobjects contained by this query - 
getUvars
Returns a Set with all the aliases of theUnwindIteratorobjects contained by this query 
 -