aclfvCreateSearchResult
Applicable Products
Product |
Supported |
|---|---|
× |
|
× |
|
× |
|
× |
|
√ |
|
× |
Description
Creates data of the aclfvSearchResult type that indicates the search result information. To destroy data of the aclfvSearchResult type, call aclfvDestroySearchResult.
Prototype
1 | aclfvSearchResult *aclfvCreateSearchResult(uint32_t queryCnt, uint32_t *resultNum, uint32_t resultNumDataLen, uint32_t *id0, uint32_t *id1, uint32_t *resultOffset, float *resultDistance, uint32_t dataLen) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
queryCnt |
Input |
Number of search requests, which is fixed at 1 in 1:N mode. |
resultNum |
Input |
Pointer to the result counts for each search request.
|
resultNumDataLen |
Input |
Total memory size for resultNum. |
id0 |
Input |
Pointer to level-1 repository IDs. The total number of IDs contained within this pointer equals topK multiplied by queryCnt. |
id1 |
Input |
Pointer to level-2 repository IDs. The total number of IDs contained within this pointer destination equals topK multiplied by queryCnt. |
resultOffset |
Input |
Pointer to the repository offsets corresponding to the search results of each search request, where the total number of elements equals topK multiplied by queryCnt.
|
resultDistance |
Input |
Pointer to the distances between each search result and the search request. The total number of elements equals topK multiplied by queryCnt. |
dataLen |
Input |
Size of the allocated memory, which is calculated as topK × queryCnt × 4 bytes. |
Return Value
- Success: a pointer to data of the aclfvSearchResult type
- Failure: nullptr