FastDeleteFeatureByIndice

API definition

APP_ERROR FastDeleteFeatureByIndice(int64_t count, const int64_t *indices);

Function

Deletes features by indice. This API is exclusively compatible with TSFlatIP and TSInt8FlatCos similarity search scenarios.

Input

int64_t count: number of features to be deleted.

const int64_t *indices: index of the feature to be deleted.

Output

N/A

Return value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

  • The value of count must be greater than 0 and less than or equal to the number of features in the database.
  • The length of indices must be count. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. The value must be greater than or equal to 0 and less than the number of features in the database.