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

A dataset returned by DatasetLoader::MultiObject. More...

#include <mknn_dataset_loader.hpp>

Inherits mknn::Dataset.

Public Member Functions

long long getNumSubDatasets ()
 Returns the number of subdatasets. More...
 
Dataset getSubDataset (long long num_subdataset)
 Returns one of the subdatasets that produced this dataset. More...
 
- Public Member Functions inherited from mknn::Dataset
 Dataset ()
 Default constructor.
 
virtual ~Dataset ()
 Default destructor.
 
 Dataset (const Dataset &other)
 Copy constructor.
 
Datasetoperator= (const Dataset &other)
 Assignment operator.
 
long long getNumObjects ()
 Size of the dataset. More...
 
void * getObject (long long pos)
 Retrieves the object in position pos in dataset. More...
 
void pushObject (void *object)
 Adds an object to a dataset. More...
 
Domain getDomain ()
 Returns the domain assigned to the dataset. More...
 
void * getCompactVectors ()
 The objects in the dataset are stored in a single long array. More...
 
void printObjectsToTextFile (std::string filename_write)
 It saves the objects in a dataset in text format. More...
 
void save (std::string filename_write)
 The dataset is saved to a file. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from mknn::Dataset
static Dataset restore (std::string filename_read)
 Loads a dataset from a file. More...
 
- Protected Attributes inherited from mknn::Dataset
std::unique_ptr< Impl > pimpl
 opaque object
 

Detailed Description

A dataset returned by DatasetLoader::MultiObject.

Member Function Documentation

long long mknn::DatasetMultiObject::getNumSubDatasets ( )

Returns the number of subdatasets.

Returns
the number of subdatasets.
Dataset mknn::DatasetMultiObject::getSubDataset ( long long  num_subdataset)

Returns one of the subdatasets that produced this dataset.

The dataset must created by DatasetLoader::Concatenate.

Parameters
num_subdatasetfrom 0 to getNumSubDatasets() - 1
Returns
a subdataset.

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