Class CypherMatchQueryImpl
java.lang.Object
se.liu.ida.hefquin.engine.wrappers.lpg.query.impl.CypherMatchQueryImpl
- All Implemented Interfaces:
CypherMatchQuery,CypherQuery
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<BooleanCypherExpression>protected final List<UnwindIterator>protected final List<MatchClause>protected final List<AliasedExpression> -
Constructor Summary
ConstructorsConstructorDescriptionCypherMatchQueryImpl(List<MatchClause> matches, List<BooleanCypherExpression> conditions, List<UnwindIterator> iterators, List<AliasedExpression> returnExprs) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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.Returns the set of variables that are defined in the MATCH clauses of this 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 queryinthashCode()toString()Returns a Cypher expression representing this query.
-
Field Details
-
matches
-
conditions
-
iterators
-
returnExprs
-
-
Constructor Details
-
CypherMatchQueryImpl
public CypherMatchQueryImpl() -
CypherMatchQueryImpl
public CypherMatchQueryImpl(List<MatchClause> matches, List<BooleanCypherExpression> conditions, List<UnwindIterator> iterators, List<AliasedExpression> returnExprs)
-
-
Method Details
-
getMatches
Description copied from interface:CypherMatchQueryObtains 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.- Specified by:
getMatchesin interfaceCypherMatchQuery- Returns:
- a list of MatchClause objects
-
getConditions
Description copied from interface:CypherMatchQueryObtains 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'.- Specified by:
getConditionsin interfaceCypherMatchQuery- Returns:
- a list of WhereCondition objects
-
getIterators
Description copied from interface:CypherMatchQueryObtains 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- Specified by:
getIteratorsin interfaceCypherMatchQuery- Returns:
- a list of UnwindIterator objects
-
getReturnExprs
Description copied from interface:CypherMatchQueryObtains 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- Specified by:
getReturnExprsin interfaceCypherMatchQuery- Returns:
- a list of ReturnStatement objects
-
getAliases
Description copied from interface:CypherMatchQueryReturns a list with the aliases of each of theAliasedExpressionobjects contained by this query- Specified by:
getAliasesin interfaceCypherMatchQuery
-
getUvars
Description copied from interface:CypherMatchQueryReturns a Set with all the aliases of theUnwindIteratorobjects contained by this query- Specified by:
getUvarsin interfaceCypherMatchQuery
-
getMatchVars
Description copied from interface:CypherQueryReturns the set of variables that are defined in the MATCH clauses of this query.- Specified by:
getMatchVarsin interfaceCypherQuery
-
toString
Description copied from interface:CypherQueryReturns a Cypher expression representing this query.- Specified by:
toStringin interfaceCypherQuery- Overrides:
toStringin classObject
-
equals
-
hashCode
public int hashCode()
-