MetricKnn API
Fast Similarity Search using the Metric Space Approach
|
A MknnResolver represents the parameters of a similarity search. More...
#include "../metricknn_c.h"
Go to the source code of this file.
Functions | |
MknnResult * | mknn_resolver_search (MknnResolver *resolver, bool free_resolver_on_result_release, MknnDataset *query_dataset, bool free_query_dataset_on_result_release) |
Performs the configured similarity search. More... | |
MknnResolverParams * | mknn_resolver_getParameters (MknnResolver *resolver) |
Return the parameters used to create the resolver. More... | |
MknnIndex * | mknn_resolver_getIndex (MknnResolver *resolver) |
Returns the index used to create the resolver. More... | |
void | mknn_resolver_release (MknnResolver *resolver) |
Releases the resolver. More... | |
A MknnResolver represents the parameters of a similarity search.
The resolver is created by the method mknn_index_newResolver which needs the search parameters and the index.
A similarity search is performed by calling method mknn_resolver_search. The results of a search is stored in the object MknnResult.
MknnIndex* mknn_resolver_getIndex | ( | MknnResolver * | resolver | ) |
Returns the index used to create the resolver.
resolver | the resolver |
MknnResolverParams* mknn_resolver_getParameters | ( | MknnResolver * | resolver | ) |
Return the parameters used to create the resolver.
resolver | the resolver |
void mknn_resolver_release | ( | MknnResolver * | resolver | ) |
Releases the resolver.
resolver | a resolver |
MknnResult* mknn_resolver_search | ( | MknnResolver * | resolver, |
bool | free_resolver_on_result_release, | ||
MknnDataset * | query_dataset, | ||
bool | free_query_dataset_on_result_release | ||
) |
Performs the configured similarity search.
resolver | the resolver containing the search parameters |
free_resolver_on_result_release | binds the lifetime of resolver to the new result. |
query_dataset | the set of query objects to resolve |
free_query_dataset_on_result_release | binds the lifetime of query_dataset to the new result. |