getListLength

API definition

uint32_t getListLength(int listId) const

Function

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

Input

int listId: specific nlistId in the nlist of AscendIndexIVF

Output

N/A

Return value

Length of the specific nlistId in the nlist of AscendIndexIVF.

Restrictions

0 ≤ listId < nlist