Record Class ScmWalk
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmWalk
- All Implemented Interfaces:
ImpScmNode
public record ScmWalk(String relationName, int relationId, ScmWalk.Direction direction, List<ImpScmNode> shaderSteps, List<ImpScmNode> subSteps)
extends Record
implements ImpScmNode
Graph traversal walk step (CSR forward or CSC reverse).
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionScmWalk(String relationName, int relationId, ScmWalk.Direction direction) ScmWalk(String relationName, int relationId, ScmWalk.Direction direction, List<ImpScmNode> shaderSteps, List<ImpScmNode> subSteps) Creates an instance of aScmWalkrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) static ScmWalkReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.static ScmWalkstatic ScmWalkforward(String relationName, ImpScmNode filter) final inthashCode()Returns a hash code value for this object.intReturns the value of therelationIdrecord component.Returns the value of therelationNamerecord component.static ScmWalkstatic ScmWalkreverse(String relationName, ImpScmNode filter) Returns the value of theshaderStepsrecord component.subSteps()Returns the value of thesubStepsrecord component.final StringtoString()Returns a string representation of this record class.withDirection(ScmWalk.Direction newDir) withRelationId(int id) withShaderSteps(List<ImpScmNode> newShaderSteps) withSubSteps(List<ImpScmNode> newSubSteps)
-
Constructor Details
-
ScmWalk
public ScmWalk(String relationName, int relationId, ScmWalk.Direction direction, List<ImpScmNode> shaderSteps, List<ImpScmNode> subSteps) Creates an instance of aScmWalkrecord class.- Parameters:
relationName- the value for therelationNamerecord componentrelationId- the value for therelationIdrecord componentdirection- the value for thedirectionrecord componentshaderSteps- the value for theshaderStepsrecord componentsubSteps- the value for thesubStepsrecord component
-
ScmWalk
-
-
Method Details
-
forward
-
forward
-
reverse
-
reverse
-
auto
-
withRelationId
-
withDirection
-
withShaderSteps
-
withSubSteps
-
toScmString
- Specified by:
toScmStringin interfaceImpScmNode
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
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. -
relationName
Returns the value of therelationNamerecord component.- Returns:
- the value of the
relationNamerecord component
-
relationId
public int relationId()Returns the value of therelationIdrecord component.- Returns:
- the value of the
relationIdrecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
shaderSteps
Returns the value of theshaderStepsrecord component.- Returns:
- the value of the
shaderStepsrecord component
-
subSteps
Returns the value of thesubStepsrecord component.- Returns:
- the value of the
subStepsrecord component
-