Record Class ScmVectorRerankDot
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmVectorRerankDot
- All Implemented Interfaces:
ImpScmNode
public record ScmVectorRerankDot(float[] queryVector, int attrId, String attrName, int metric)
extends Record
implements ImpScmNode
Vector similarity reranking step over active frontier nodes (opcode
0xCB OP_VECTOR_RERANK_DOT).-
Constructor Summary
ConstructorsConstructorDescriptionScmVectorRerankDot(float[] queryVector, int attrId, String attrName, int metric) Creates an instance of aScmVectorRerankDotrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) intattrId()Returns the value of theattrIdrecord component.attrName()Returns the value of theattrNamerecord component.booleanIndicates whether some other object is "equal to" this one.static ScmVectorRerankDotfromInlineVector(List<Float> queryVec, int attrId, int metric) static ScmVectorRerankDotfromRegister(int queryReg, int attrId, int metric) inthashCode()Returns a hash code value for this object.intmetric()Returns the value of themetricrecord component.intqueryReg()float[]Returns the value of thequeryVectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScmVectorRerankDot
Creates an instance of aScmVectorRerankDotrecord class.- Parameters:
queryVector- the value for thequeryVectorrecord componentattrId- the value for theattrIdrecord componentattrName- the value for theattrNamerecord componentmetric- the value for themetricrecord component
-
-
Method Details
-
fromInlineVector
-
fromRegister
-
queryReg
public int queryReg() -
queryVectorList
-
queryVector
public float[] queryVector()Returns the value of thequeryVectorrecord component.- Returns:
- the value of the
queryVectorrecord component
-
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. -
hashCode
-
toScmString
- Specified by:
toScmStringin interfaceImpScmNode
-
accept
- Specified by:
acceptin interfaceImpScmNode
-
toString
-
attrId
public int attrId()Returns the value of theattrIdrecord component.- Returns:
- the value of the
attrIdrecord component
-
attrName
Returns the value of theattrNamerecord component.- Returns:
- the value of the
attrNamerecord component
-
metric
public int metric()Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-