Record Class ScmLanePruneMask

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

public record ScmLanePruneMask(int mode, int arg1, int arg2, String relationName, int relationId, List<Long> denyNodes) extends Record implements ImpScmNode
Multi-lane bitmask pruning step (opcode 0xC5 OP_LANE_PRUNE_MASK).
  • Mode 0: Node exclusion bitset / deny mask
  • Mode 1: Intra-word ALLOW & ~DENY split (low half & ~high half)
  • Mode 2: Degree-gated hub quorum pruning
  • Constructor Details

    • ScmLanePruneMask

      public ScmLanePruneMask(int mode, int arg1, int arg2, String relationName, int relationId, List<Long> denyNodes)
      Creates an instance of a ScmLanePruneMask record class.
      Parameters:
      mode - the value for the mode record component
      arg1 - the value for the arg1 record component
      arg2 - the value for the arg2 record component
      relationName - the value for the relationName record component
      relationId - the value for the relationId record component
      denyNodes - the value for the denyNodes record component
    • ScmLanePruneMask

      public ScmLanePruneMask(int mode, int arg0, int arg1, List<Long> denyNodes)
  • Method Details

    • denyNodes

      public static ScmLanePruneMask denyNodes(List<Long> denyNodes)
    • fromInlineDeny

      public static ScmLanePruneMask fromInlineDeny(List<Long> denyNodes)
    • fromRegister

      public static ScmLanePruneMask fromRegister(int mode, int denyReg)
    • arg0

      public int arg0()
    • allowDenySplit

      public static ScmLanePruneMask allowDenySplit(int halfLanes)
    • hubPrune

      public static ScmLanePruneMask hubPrune(int maxDegree, int minQuorum, String relationName)
    • withRelationId

      public ScmLanePruneMask withRelationId(int id)
    • 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.
    • mode

      public int mode()
      Returns the value of the mode record component.
      Returns:
      the value of the mode record component
    • arg1

      public int arg1()
      Returns the value of the arg1 record component.
      Returns:
      the value of the arg1 record component
    • arg2

      public int arg2()
      Returns the value of the arg2 record component.
      Returns:
      the value of the arg2 record component
    • 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
    • denyNodes

      public List<Long> denyNodes()
      Returns the value of the denyNodes record component.
      Returns:
      the value of the denyNodes record component