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
ConstructorsConstructorDescriptionImpKStatement(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 aImpKStatementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImpKStatementbasic(String targetVar, ImpKOpType opType, String matrixVar, String vectorVar1, String vectorVar2, double scalarParam, int topK) booleanReturns the value of theboolParamrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefloatListrecord component.final inthashCode()Returns a hash code value for this object.intList()Returns the value of theintListrecord component.intReturns the value of theintParam1record component.intReturns the value of theintParam2record component.Returns the value of thematrixVarrecord component.opType()Returns the value of theopTyperecord component.doubleReturns the value of thescalarParamrecord component.Returns the value of thetargetVarrecord component.inttopK()Returns the value of thetopKrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevectorVar1record component.Returns the value of thevectorVar2record component.
-
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 aImpKStatementrecord class.- Parameters:
targetVar- the value for thetargetVarrecord componentopType- the value for theopTyperecord componentmatrixVar- the value for thematrixVarrecord componentvectorVar1- the value for thevectorVar1record componentvectorVar2- the value for thevectorVar2record componentscalarParam- the value for thescalarParamrecord componenttopK- the value for thetopKrecord componentintParam1- the value for theintParam1record componentintParam2- the value for theintParam2record componentboolParam- the value for theboolParamrecord componentintList- the value for theintListrecord componentfloatList- the value for thefloatListrecord component
-
-
Method Details
-
basic
public static ImpKStatement basic(String targetVar, ImpKOpType opType, String matrixVar, String vectorVar1, String vectorVar2, double scalarParam, int topK) -
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. -
targetVar
Returns the value of thetargetVarrecord component.- Returns:
- the value of the
targetVarrecord component
-
opType
Returns the value of theopTyperecord component.- Returns:
- the value of the
opTyperecord component
-
matrixVar
Returns the value of thematrixVarrecord component.- Returns:
- the value of the
matrixVarrecord component
-
vectorVar1
Returns the value of thevectorVar1record component.- Returns:
- the value of the
vectorVar1record component
-
vectorVar2
Returns the value of thevectorVar2record component.- Returns:
- the value of the
vectorVar2record component
-
scalarParam
public double scalarParam()Returns the value of thescalarParamrecord component.- Returns:
- the value of the
scalarParamrecord component
-
topK
public int topK()Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-
intParam1
public int intParam1()Returns the value of theintParam1record component.- Returns:
- the value of the
intParam1record component
-
intParam2
public int intParam2()Returns the value of theintParam2record component.- Returns:
- the value of the
intParam2record component
-
boolParam
public boolean boolParam()Returns the value of theboolParamrecord component.- Returns:
- the value of the
boolParamrecord component
-
intList
-
floatList
-