LoadIndex

API definition

APP_ERROR LoadIndex(const std::string& indexPath);

Function

Reads the index structure from a drive, including the feature vectors after compression and dimension reduction, as well as codebook data.

Input

const std::string& indexPath: path for loading the KMode index.

Output

N/A

Return value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

The file corresponding to indexPath is the file flushed to a drive and obtained by calling the WriteIndex method. The program running user has the read permission on the file. For security hardening, the directory level cannot contain soft links.

API definition

APP_ERROR LoadIndex(const std::string& aModeIndexPath, const std::string& kModeIndexPath);

Function

Writes the index structure to a drive, including the feature vectors after compression and dimension reduction, as well as original data.

Input

const std::string& aModeIndexPath: path for loading the AMode index.

const std::string& kModeIndexPath: path for loading the KMode index.

Output

N/A

Return value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

The files corresponding to aModeIndexPath and kModeIndexPath are the files flushed to a drive and obtained by calling the WriteIndex method. The program running user has the read permission on the files. For security hardening, the directory level cannot contain soft links.