getListCodesAndIds

API definition

void getListCodesAndIds(int listId, std::vector<uint8_t>& codes, std::vector<ascend_idx_t>& ids) const override;

Function

Returns the feature vector and corresponding ID of the specific nlistId in the nlist of the current AscendIndexIVFSQT.

Input

int listId: specific nlistId in the nlist of AscendIndexIVFSQT.

Output

std::vector<uint8_t>& codes: feature vectors of the specific nlistId in nlist of AscendIndexIVFSQT.

std::vector<ascend_idx_t>& ids: feature vector IDs of the specific nlistId in nlist of AscendIndexIVFSQT.

Return value

N/A

Restrictions

This API is not supported in the current version. Avoid using it.