Interface QueryResult<K,V>

Type Parameters:
K - the type of the key
V - the type of the value
All Known Implementing Classes:
BaseQueryResult, BinaryQueryResult, ConverterResult, SimpleQueryResult

public interface QueryResult<K,V>
The result of executing a query on a vector store.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    The result value obtained by executing the query on the vector.
    Returns the key for the entry this result matches.
    Returns the value for the entry this result matches.
  • Method Details

    • getDistance

      double getDistance()
      The result value obtained by executing the query on the vector.
      Returns:
      the result value obtained by executing the query on the vector
    • getKey

      K getKey()
      Returns the key for the entry this result matches.
      Returns:
      the key for the entry this result matches
    • getValue

      V getValue()
      Returns the value for the entry this result matches.
      Returns:
      the value for the entry this result matches