Package com.oracle.coherence.ai
Interface QueryResult<K,V>
- Type Parameters:
K
- the type of the keyV
- 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 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
-