MetricKnn API
Fast Similarity Search using the Metric Space Approach
Public Member Functions | Protected Attributes | Friends | List of all members
mknn::Result Class Reference

The result of a search for a set of queries. More...

#include <mknn_result.hpp>

Public Member Functions

long long getNumQueries ()
 
double getTotalSearchTime ()
 
long long getTotalDistanceEvaluations ()
 
ResolvergetResolver ()
 
DatasetgetQueryDataset ()
 
ResultQuery getResultQuery (long long num_query)
 Returns the result for each query in the query dataset. More...
 
 Result ()
 Default constructor.
 
virtual ~Result ()
 Default destructor.
 
 Result (const Result &other)
 Copy constructor.
 
Resultoperator= (const Result &other)
 Assignment operator.
 

Protected Attributes

std::unique_ptr< Impl > pimpl
 Internal opaque class.
 

Friends

class Resolver
 

Detailed Description

The result of a search for a set of queries.

Member Function Documentation

long long mknn::Result::getNumQueries ( )
Returns
amount of resolved queries.
Dataset& mknn::Result::getQueryDataset ( )
Returns
the query dataset that generated this result.
Resolver& mknn::Result::getResolver ( )
Returns
the resolver that generated this result.
ResultQuery mknn::Result::getResultQuery ( long long  num_query)

Returns the result for each query in the query dataset.

Parameters
num_querythe number of query to return, between 0 and getNumQueries - 1.
Returns
result for each query object.
long long mknn::Result::getTotalDistanceEvaluations ( )
Returns
total amount of distances evaluated during the search.
double mknn::Result::getTotalSearchTime ( )
Returns
total time in seconds spent by the search.

The documentation for this class was generated from the following file:
Powered by Download MetricKnn