getListCodesAndIds
API Definition |
void getListCodesAndIds(int listId, std::vector<int8_t>& codes, std::vector<ascend_idx_t>& ids) const |
|---|---|
Function |
Returns the current feature vector and corresponding ID of the specific nlistId in the nlist of AscendIndexInt8IVF. |
Input |
int listId: specific nlistId in the nlist of AscendIndexInt8IVF. |
Output |
std::vector<int8_t>& codes: feature vectors of the specific nlistId in the nlist of AscendIndexInt8IVF. std::vector<ascend_idx_t>& ids: feature vector IDs of the specific nlistId in the nlist of AscendIndexInt8IVF. |
Return Value |
N/A |
Restrictions |
0 ≤ listId < nlist |
Parent topic: AscendIndexInt8IVF