Class NodeMatchClause
java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.query.impl.match.NodeMatchClause
- All Implemented Interfaces:
 CypherExpression,MatchClause
Represents a node match clause
 For example, MATCH (x)
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleangetNode()getVars()Obtains the set of variables defined in the patterninthashCode()booleanisRedundantWith(MatchClause match) Checks if two match statements are redundant.toString()voidvisit(CypherExpressionVisitor visitor) accepts aCypherExpressionVisitorand propagates the visit recursively when required. 
- 
Field Details
- 
node
 
 - 
 - 
Constructor Details
- 
NodeMatchClause
 
 - 
 - 
Method Details
- 
toString
 - 
isRedundantWith
Description copied from interface:MatchClauseChecks if two match statements are redundant. This can happen if they are exactly the same pattern, or if one is a node pattern and the other a path pattern that contains it. For instance, MATCH (x) is redundant with MATCH (x)-[y]->(z), MATCH (x), and MATCH (v)-[w]->(x). Note that this is not symmetric.- Specified by:
 isRedundantWithin interfaceMatchClause- Parameters:
 match- the other match clause to test- Returns:
 - true if the clauses are redundant, i.e., if both patterns share nodes
 
 - 
getVars
Description copied from interface:MatchClauseObtains the set of variables defined in the pattern- Specified by:
 getVarsin interfaceCypherExpression- Specified by:
 getVarsin interfaceMatchClause- Returns:
 - a set of CypherVar with the variables defined in the pattern For example, the object that represents the pattern MATCH (x)-[e]->(y) returns the set {x, e, y}.
 
 - 
visit
Description copied from interface:CypherExpressionaccepts aCypherExpressionVisitorand propagates the visit recursively when required.- Specified by:
 visitin interfaceCypherExpression
 - 
equals
 - 
hashCode
 - 
getNode
 
 -