Record Class ScmVectorAnnSearch
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.ast.ScmVectorAnnSearch
- All Implemented Interfaces:
ImpScmNode
public record ScmVectorAnnSearch(float[] queryVector, int topK, int indexOrAttrId, String indexOrAttrName, boolean multiLaneHandshake)
extends Record
implements ImpScmNode
Hybrid vector ANN search step (opcode
0xCA OP_VECTOR_ANN_SEARCH).-
Constructor Summary
ConstructorsConstructorDescriptionScmVectorAnnSearch(float[] queryVector, int topK, int indexOrAttrId, String indexOrAttrName, boolean multiLaneHandshake) Creates an instance of aScmVectorAnnSearchrecord class. -
Method Summary
Modifier and TypeMethodDescription<R> Raccept(ImpScmVisitor<R> visitor) booleanIndicates whether some other object is "equal to" this one.static ScmVectorAnnSearchfromInlineVector(List<Float> queryVec, int topK, int indexOrAttrId, boolean fusedLaneFrontier) static ScmVectorAnnSearchfromRegister(int queryReg, int topK, int indexOrAttrId, boolean fusedLaneFrontier) booleaninthashCode()Returns a hash code value for this object.intReturns the value of theindexOrAttrIdrecord component.Returns the value of theindexOrAttrNamerecord component.booleanReturns the value of themultiLaneHandshakerecord component.intqueryReg()float[]Returns the value of thequeryVectorrecord component.inttopK()Returns the value of thetopKrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScmVectorAnnSearch
public ScmVectorAnnSearch(float[] queryVector, int topK, int indexOrAttrId, String indexOrAttrName, boolean multiLaneHandshake) Creates an instance of aScmVectorAnnSearchrecord class.- Parameters:
queryVector- the value for thequeryVectorrecord componenttopK- the value for thetopKrecord componentindexOrAttrId- the value for theindexOrAttrIdrecord componentindexOrAttrName- the value for theindexOrAttrNamerecord componentmultiLaneHandshake- the value for themultiLaneHandshakerecord component
-
-
Method Details
-
fromInlineVector
public static ScmVectorAnnSearch fromInlineVector(List<Float> queryVec, int topK, int indexOrAttrId, boolean fusedLaneFrontier) -
fromRegister
public static ScmVectorAnnSearch fromRegister(int queryReg, int topK, int indexOrAttrId, boolean fusedLaneFrontier) -
queryReg
public int queryReg() -
fusedLaneFrontier
public boolean fusedLaneFrontier() -
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
-
topK
public int topK()Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-
indexOrAttrId
public int indexOrAttrId()Returns the value of theindexOrAttrIdrecord component.- Returns:
- the value of the
indexOrAttrIdrecord component
-
indexOrAttrName
Returns the value of theindexOrAttrNamerecord component.- Returns:
- the value of the
indexOrAttrNamerecord component
-
multiLaneHandshake
public boolean multiLaneHandshake()Returns the value of themultiLaneHandshakerecord component.- Returns:
- the value of the
multiLaneHandshakerecord component
-