Record Class ScmLaneWalk

java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmLaneWalk
All Implemented Interfaces:
ImpScmNode

public record ScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean accumulate, boolean fixedPoint) extends Record implements ImpScmNode
Multi-lane bit-sliced CSR/CSC traversal step (opcodes 0xC3 OP_LANE_CSR_WALK and 0xC4 OP_LANE_CSC_WALK).
  • Constructor Details

    • ScmLaneWalk

      public ScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean accumulate, boolean fixedPoint)
      Creates an instance of a ScmLaneWalk record class.
      Parameters:
      relationName - the value for the relationName record component
      relationId - the value for the relationId record component
      direction - the value for the direction record component
      accumulate - the value for the accumulate record component
      fixedPoint - the value for the fixedPoint record component
    • ScmLaneWalk

      public ScmLaneWalk(String relationName, int relationId, ScmWalk.Direction direction, boolean fixedPoint)
  • Method Details

    • forward

      public static ScmLaneWalk forward(String relationName, boolean fixedPoint)
    • reverse

      public static ScmLaneWalk reverse(String relationName, boolean fixedPoint)
    • csr

      public static ScmLaneWalk csr(String relationName, boolean accumulate, boolean fixedPoint)
    • csc

      public static ScmLaneWalk csc(String relationName, boolean accumulate, boolean fixedPoint)
    • withRelationId

      public ScmLaneWalk withRelationId(int id)
    • flagsByte

      public byte flagsByte()
    • toScmString

      public String toScmString()
      Specified by:
      toScmString in interface ImpScmNode
    • accept

      public <R> R accept(ImpScmVisitor<R> visitor)
      Specified by:
      accept in interface ImpScmNode
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • relationName

      public String relationName()
      Returns the value of the relationName record component.
      Returns:
      the value of the relationName record component
    • relationId

      public int relationId()
      Returns the value of the relationId record component.
      Returns:
      the value of the relationId record component
    • direction

      public ScmWalk.Direction direction()
      Returns the value of the direction record component.
      Returns:
      the value of the direction record component
    • accumulate

      public boolean accumulate()
      Returns the value of the accumulate record component.
      Returns:
      the value of the accumulate record component
    • fixedPoint

      public boolean fixedPoint()
      Returns the value of the fixedPoint record component.
      Returns:
      the value of the fixedPoint record component