getListCodesAndIds
API定义 |
void getListCodesAndIds(int listId, std::vector<int8_t>& codes, std::vector<ascend_idx_t>& ids) const |
---|---|
功能描述 |
返回当前的AscendIndexInt8IVF的nlist中的特定“nlistId”上的特征向量和对应ID。 |
输入 |
int listId:AscendIndexInt8IVF的nlist中的特定“nlistId”。 |
输出 |
std::vector<int8_t>& codes:AscendIndexInt8IVF的nlist中的特定“nlistId”上的特征向量。 std::vector<ascend_idx_t>& ids:AscendIndexInt8IVF的nlist中的特定“nlistId”上的特征向量ID。 |
返回值 |
无 |
约束说明 |
0 ≤ listId < nlist |
父主题: AscendIndexInt8IVF