Record Class CypherParser.EdgePattern
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.cypher.CypherParser.EdgePattern
- Enclosing class:
CypherParser
-
Constructor Summary
ConstructorsConstructorDescriptionEdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr) EdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr, List<String> relationNames, boolean isUndirected, boolean isUnbounded) Creates an instance of aEdgePatternrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilterExprrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisForwardrecord component.booleanReturns the value of theisUnboundedrecord component.booleanReturns the value of theisUndirectedrecord component.intmaxHops()Returns the value of themaxHopsrecord component.intminHops()Returns the value of theminHopsrecord component.Returns the value of therelationNamerecord component.Returns the value of therelationNamesrecord component.final StringtoString()Returns a string representation of this record class.variable()Returns the value of thevariablerecord component.
-
Constructor Details
-
EdgePattern
public EdgePattern(String variable, String relationName, boolean isForward, int minHops, int maxHops, String filterExpr, List<String> relationNames, boolean isUndirected, boolean isUnbounded) Creates an instance of aEdgePatternrecord class.- Parameters:
variable- the value for thevariablerecord componentrelationName- the value for therelationNamerecord componentisForward- the value for theisForwardrecord componentminHops- the value for theminHopsrecord componentmaxHops- the value for themaxHopsrecord componentfilterExpr- the value for thefilterExprrecord componentrelationNames- the value for therelationNamesrecord componentisUndirected- the value for theisUndirectedrecord componentisUnbounded- the value for theisUnboundedrecord component
-
EdgePattern
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
variable
Returns the value of thevariablerecord component.- Returns:
- the value of the
variablerecord component
-
relationName
Returns the value of therelationNamerecord component.- Returns:
- the value of the
relationNamerecord component
-
isForward
public boolean isForward()Returns the value of theisForwardrecord component.- Returns:
- the value of the
isForwardrecord component
-
minHops
public int minHops()Returns the value of theminHopsrecord component.- Returns:
- the value of the
minHopsrecord component
-
maxHops
public int maxHops()Returns the value of themaxHopsrecord component.- Returns:
- the value of the
maxHopsrecord component
-
filterExpr
Returns the value of thefilterExprrecord component.- Returns:
- the value of the
filterExprrecord component
-
relationNames
-
isUndirected
public boolean isUndirected()Returns the value of theisUndirectedrecord component.- Returns:
- the value of the
isUndirectedrecord component
-
isUnbounded
public boolean isUnbounded()Returns the value of theisUnboundedrecord component.- Returns:
- the value of the
isUnboundedrecord component
-