getListLength

API Definition

uint32_t getListLength(int listId) const

Function

Returns the number of base library vectors stored in the bucket whose AscendIndexInt8IVFID is nlistId.

Input

int listId: specific nlistId in the nlist of AscendIndexInt8IVF.

Output

N/A

Return Value

Length of the specific nlistId in the nlist of AscendIndexInt8IVF.

Restrictions

0 ≤ listId < nlist