Class EdgeMatchClause
java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.query.impl.match.EdgeMatchClause
- All Implemented Interfaces:
CypherExpression,MatchClause
Represents a directed path match statement. Conditions on the labels of the nodes or edges, as well as
over property values of nodes or edges are managed through the WHERE clause.
For example MATCH (x)-[e]->(y)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetEdge()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
-
sourceNode
-
targetNode
-
edge
-
-
Constructor Details
-
EdgeMatchClause
-
-
Method Details
-
getSourceNode
-
getTargetNode
-
getEdge
-
toString
-
equals
-
hashCode
public int hashCode() -
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
-