FastDeleteFeatureByRange

API definition

APP_ERROR FastDeleteFeatureByRange(int64_t start, int64_t count);

Function

Deletes count features in batches from the provided starting position. This API is exclusively compatible with TSFlatIP and TSInt8FlatCos similarity search scenarios.

Input

int64_t start: starting position of the features to be deleted in batches.

int64_t count: number of features to be deleted in batches.

Output

N/A

Return value

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

Restrictions

  • The value of start must be greater than or equal to 0 and less than or equal to the number of features in the database.
  • The value of count must be greater than 0 and less than or equal to the number of features in the database.
  • The sum of start and count must be less than or equal to the number of features in the database.