Record Class ImpKStatement

java.lang.Object
java.lang.Record
org.impulsegraph.compiler.impk.ImpKStatement

public record ImpKStatement(String targetVar, ImpKOpType opType, String matrixVar, String vectorVar1, String vectorVar2, double scalarParam, int topK, int intParam1, int intParam2, boolean boolParam, List<Long> intList, List<Float> floatList) extends Record
Parsed statement in an ImpK (.impk) script.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ImpKStatement(String targetVar, ImpKOpType opType, String matrixVar, String vectorVar1, String vectorVar2, double scalarParam, int topK, int intParam1, int intParam2, boolean boolParam, List<Long> intList, List<Float> floatList)
    Creates an instance of a ImpKStatement record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    basic(String targetVar, ImpKOpType opType, String matrixVar, String vectorVar1, String vectorVar2, double scalarParam, int topK)
     
    boolean
    Returns the value of the boolParam record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the floatList record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the intList record component.
    int
    Returns the value of the intParam1 record component.
    int
    Returns the value of the intParam2 record component.
    Returns the value of the matrixVar record component.
    Returns the value of the opType record component.
    double
    Returns the value of the scalarParam record component.
    Returns the value of the targetVar record component.
    int
    Returns the value of the topK record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the vectorVar1 record component.
    Returns the value of the vectorVar2 record component.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ImpKStatement

      public ImpKStatement(String targetVar, ImpKOpType opType, String matrixVar, String vectorVar1, String vectorVar2, double scalarParam, int topK, int intParam1, int intParam2, boolean boolParam, List<Long> intList, List<Float> floatList)
      Creates an instance of a ImpKStatement record class.
      Parameters:
      targetVar - the value for the targetVar record component
      opType - the value for the opType record component
      matrixVar - the value for the matrixVar record component
      vectorVar1 - the value for the vectorVar1 record component
      vectorVar2 - the value for the vectorVar2 record component
      scalarParam - the value for the scalarParam record component
      topK - the value for the topK record component
      intParam1 - the value for the intParam1 record component
      intParam2 - the value for the intParam2 record component
      boolParam - the value for the boolParam record component
      intList - the value for the intList record component
      floatList - the value for the floatList record component
  • Method Details

    • basic

      public static ImpKStatement basic(String targetVar, ImpKOpType opType, String matrixVar, String vectorVar1, String vectorVar2, double scalarParam, int topK)
    • 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.
    • targetVar

      public String targetVar()
      Returns the value of the targetVar record component.
      Returns:
      the value of the targetVar record component
    • opType

      public ImpKOpType opType()
      Returns the value of the opType record component.
      Returns:
      the value of the opType record component
    • matrixVar

      public String matrixVar()
      Returns the value of the matrixVar record component.
      Returns:
      the value of the matrixVar record component
    • vectorVar1

      public String vectorVar1()
      Returns the value of the vectorVar1 record component.
      Returns:
      the value of the vectorVar1 record component
    • vectorVar2

      public String vectorVar2()
      Returns the value of the vectorVar2 record component.
      Returns:
      the value of the vectorVar2 record component
    • scalarParam

      public double scalarParam()
      Returns the value of the scalarParam record component.
      Returns:
      the value of the scalarParam record component
    • topK

      public int topK()
      Returns the value of the topK record component.
      Returns:
      the value of the topK record component
    • intParam1

      public int intParam1()
      Returns the value of the intParam1 record component.
      Returns:
      the value of the intParam1 record component
    • intParam2

      public int intParam2()
      Returns the value of the intParam2 record component.
      Returns:
      the value of the intParam2 record component
    • boolParam

      public boolean boolParam()
      Returns the value of the boolParam record component.
      Returns:
      the value of the boolParam record component
    • intList

      public List<Long> intList()
      Returns the value of the intList record component.
      Returns:
      the value of the intList record component
    • floatList

      public List<Float> floatList()
      Returns the value of the floatList record component.
      Returns:
      the value of the floatList record component