Record Class ScmWalk2Hop
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmWalk2Hop
- All Implemented Interfaces:
ImpScmNode
public record ScmWalk2Hop(String relation1Name, int relation1Id, String relation2Name, int relation2Id)
extends Record
implements ImpScmNode
Fused 2-Hop CSR Graph Traversal Step: (csr-walk-2hop rel1 rel2). Fuses two
sequential forward CSR traversals into a single hardware register execution
loop, eliminating intermediate frontier bitset materialization.
-
Constructor Summary
ConstructorsConstructorDescriptionScmWalk2Hop(String relation1Name, int relation1Id, String relation2Name, int relation2Id) Creates an instance of aScmWalk2Hoprecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static ScmWalk2HopintReturns the value of therelation1Idrecord component.Returns the value of therelation1Namerecord component.intReturns the value of therelation2Idrecord component.Returns the value of therelation2Namerecord component.final StringtoString()Returns a string representation of this record class.withPhysicalIds(int id1, int id2)
-
Constructor Details
-
ScmWalk2Hop
Creates an instance of aScmWalk2Hoprecord class.- Parameters:
relation1Name- the value for therelation1Namerecord componentrelation1Id- the value for therelation1Idrecord componentrelation2Name- the value for therelation2Namerecord componentrelation2Id- the value for therelation2Idrecord component
-
-
Method Details
-
of
-
withPhysicalIds
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
toScmString
- Specified by:
toScmStringin 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. -
relation1Name
Returns the value of therelation1Namerecord component.- Returns:
- the value of the
relation1Namerecord component
-
relation1Id
public int relation1Id()Returns the value of therelation1Idrecord component.- Returns:
- the value of the
relation1Idrecord component
-
relation2Name
Returns the value of therelation2Namerecord component.- Returns:
- the value of the
relation2Namerecord component
-
relation2Id
public int relation2Id()Returns the value of therelation2Idrecord component.- Returns:
- the value of the
relation2Idrecord component
-