昇腾社区首页
中文
注册

getListLength

API定义

uint32_t getListLength(int listId) const

功能描述

返回当前的AscendIndexInt8IVFID为“nlistId”的桶内存储的底库向量个数。

输入

int listId:AscendIndexInt8IVF的nlist中的特定“nlistId”

输出

返回值

AscendIndexInt8IVF的nlist中的特定“nlistId”上的长度。

约束说明

0 ≤ listId < nlist