getListLength

API definition

virtual uint32_t getListLength(int listId) const;

Function

Returns the length of the specific nlistId in nlist of the current AscendIndexIVF.

Input

int listId: specific nlistId in nlist of AscendIndexIVF

Output

N/A

Return value

Length of the specific nlistId in nlist of AscendIndexIVF.

Restrictions

0 ≤ listId < nlist