primaryKey
Returns the value of the
primaryKey record component.- Returns:
- the value of the
primaryKeyrecord component
primaryKey - Primary key of the item in the HNSW.vector - The vector that is stored with the item in the structure. This vector is expressed in the client's
coordinate system and should be of class HalfRealVector, FloatRealVector,
or DoubleRealVector. This member is nullable. It is set to null, if the caller to
kNearestNeighborsSearch(.) requested to not return vectors. The vector, if set, may or may not be
exactly equal to the vector that was originally inserted into the vector structure. Depending on
quantization settings (see Config), the vector that is returned may only be an approximation of the
original vector.additionalValues - additional values that are stored together with the primary key and the vector for faster
retrieval.distance - The distance of item's vector to the query vector.rankOrRowNumber - The row number of the item. TODO support rank.ResultEntry(Tuple primaryKey,
RealVector vector,
Tuple additionalValues,
double distance,
int rankOrRowNumber) ResultEntry record class.additionalValues record component.doubledistance()distance record component.final booleanfinal inthashCode()primaryKey record component.intrankOrRowNumber record component.toString()vector()vector record component.ResultEntry record class.primaryKey - the value for the primaryKey record componentvector - the value for the vector record componentadditionalValues - the value for the additionalValues record componentdistance - the value for the distance record componentrankOrRowNumber - the value for the rankOrRowNumber record componentObjects::equals(Object,Object); primitive components are compared with '=='.primaryKey record component.primaryKey record componentvector record component.vector record componentadditionalValues record component.additionalValues record componentdistance record component.distance record componentrankOrRowNumber record component.rankOrRowNumber record component