A MknnResult stores the result for a query dataset, and MknnResultQuery stores the result for each query object.
More...
Go to the source code of this file.
A MknnResult stores the result for a query dataset, and MknnResultQuery stores the result for each query object.
MknnResultQuery is non-opaque, thus the results can be read be accessing the object attributes. Note that MknnResultQuery objects are binded to MknnResult, thus by releasing MknnResult (mknn_result_release) all the MknnResultQuery objects will be released too.
int64_t mknn_result_getNumQueries |
( |
MknnResult * |
result | ) |
|
- Parameters
-
- Returns
- amount of resolved queries.
- Parameters
-
- Returns
- the query dataset that generated this result.
- Parameters
-
- Returns
- the resolver that generated this result.
Returns the result for each query in the query dataset.
- Parameters
-
- Returns
- result for each query object.
int64_t mknn_result_getTotalDistanceEvaluations |
( |
MknnResult * |
result | ) |
|
- Parameters
-
- Returns
- total amount of distances evaluated during the search.
double mknn_result_getTotalSearchTime |
( |
MknnResult * |
result | ) |
|
- Parameters
-
- Returns
- total time in seconds spent by the search.
Releases the result of a search (including the result for each query) that may have been returned by mknn_result_getResultQuery.
- Parameters
-
result | the result object to be released. |