getIdxMap

API definition

void getIdxMap(int deviceId, std::vector<idx_t> &idxMap) const;

Function

Obtains the IDs of feature vectors managed by AscendIndexInt8Flat in the specific deviceId.

Input

int deviceId: device ID

Output

std::vector<Index::idx_t> &idxMap: IDs of feature vectors stored in deviceId by AscendIndexInt8Flat.

Return value

N/A

Restrictions

deviceId must be a valid device ID.