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