目录

aip_retrieval_condition.h

Overview

Provides APIs related to retrieval conditions.

File to include: #include "dataaugmentation/retrieval/aip_retrieval_condition.h"

Library: libretrieval_ndk.so

System capability: SystemCapability.DataAugmentation.Retrieval

Since: 6.0.0(20)

Related module: Retrieval

Summary

[h2]Types

Name Description
typedef struct OH_Retrieval_Condition OH_Retrieval_Condition Defines the retrieval condition, which can contain multiple sub-conditions.
typedef struct OH_Retrieval_SubCondition OH_Retrieval_SubCondition Defines a retrieval sub-condition, which can be used for vector retrieval.

[h2]Functions

Name Description
OH_Retrieval_Condition * OH_Retrieval_CreateCondition () Creates a retrieval condition as the input parameter of the retrieval API.
int OH_Retrieval_DestroyCondition (OH_Retrieval_Condition *condition) Destroys the retrieval condition obtained through OH_Retrieval_CreateCondition.
int OH_Retrieval_DestroySubCondition (OH_Retrieval_SubCondition *condition) Destroys the condition created through OH_Retrieval_SubCondition.
int OH_Retrieval_AddSubCondition (OH_Retrieval_Condition *condition, OH_Retrieval_SubCondition *subCondition) Adds a sub-condition to a retrieval condition.