MetricKnn API
Fast Similarity Search using the Metric Space Approach
Functions
mknn_resolver.h File Reference

A MknnResolver represents the parameters of a similarity search. More...

#include "../metricknn_c.h"

Go to the source code of this file.

Functions

MknnResultmknn_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...
 
MknnResolverParamsmknn_resolver_getParameters (MknnResolver *resolver)
 Return the parameters used to create the resolver. More...
 
MknnIndexmknn_resolver_getIndex (MknnResolver *resolver)
 Returns the index used to create the resolver. More...
 
void mknn_resolver_release (MknnResolver *resolver)
 Releases the resolver. More...
 

Detailed Description

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.

Function Documentation

MknnIndex* mknn_resolver_getIndex ( MknnResolver resolver)

Returns the index used to create the resolver.

Parameters
resolverthe resolver
Returns
the index used to create the resolver
MknnResolverParams* mknn_resolver_getParameters ( MknnResolver resolver)

Return the parameters used to create the resolver.

Parameters
resolverthe resolver
Returns
the parameters used to create the resolver.
void mknn_resolver_release ( MknnResolver resolver)

Releases the resolver.

Parameters
resolvera 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.

Note
This method make take long time.
Parameters
resolverthe resolver containing the search parameters
free_resolver_on_result_releasebinds the lifetime of resolver to the new result.
query_datasetthe set of query objects to resolve
free_query_dataset_on_result_releasebinds the lifetime of query_dataset to the new result.
Returns
a new search result (it must be released with mknn_result_release).
Powered by Download MetricKnn