GetFeatureAttrByLabel

API definition

APP_ERROR GetFeatureAttrByLabel(int64_t count, const int64_t *labels, FeatureAttr *attributes) const;

Function

Obtains the attribute of a specified label feature.

Input

int64_t count: number of features to be obtained.

const int64_t *labels: feature label.

Output

FeatureAttr *attributes: feature attribute.

Return value

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

Restrictions

  • Value range of count: [1, 1e6]
  • The length of labels must be count, and each element must be unique and exist in the database. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. If the input labels does not exist in the database, among the feature attributes returned by the API, the value of time is INT32_MIN and the value of tokenId is UINT32_MAX.
  • The length of attributes must be count. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown.