Class PathMatchClause
java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.query.impl.match.PathMatchClause
- All Implemented Interfaces:
CypherExpression,MatchClause
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEdges()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
-
edges
-
-
Constructor Details
-
PathMatchClause
-
PathMatchClause
-
-
Method Details
-
visit
Description copied from interface:CypherExpressionaccepts aCypherExpressionVisitorand propagates the visit recursively when required.- Specified by:
visitin interfaceCypherExpression
-
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}.
-
toString
-
getEdges
-
equals
-
hashCode
public int hashCode()
-