RemoveFeatures

API definition

virtual APP_ERROR RemoveFeatures(int n, const idx_t *indices) = 0;

Function

Deletes n feature vectors with specified indexes from the vector database.

Input

int n: number of feature vectors to be deleted.

const idx_t *indices: index corresponding to a feature vector.

Output

N/A

Return value

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

Restrictions

  • The input parameters must meet the requirements of the implementation class of this class.
  • indices must be a non-null pointer with a length of n. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown.