下载
中文
注册

WriteIndex

API定义

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

功能描述

将Index结构写入磁盘,写入磁盘的数据包括压缩降维后的特征向量和码本数据。

输入

输出

  • const std::string& aModeIndexPath:写入AMode索引的路径。
  • const std::string& kModeIndexPath:写入KMode索引的路径。

返回值

APP_ERROR:调用返回状态,具体请参见接口调用返回值参考

约束说明

用户需要保证“aModeIndexPath”和“kModeIndexPath”文件路径所在的目录存在,且执行用户对目录具有写权限。出于安全加固考虑,目录层级中不能含有软链接。