ConditionalSkill Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. ConditionalSkill
- com.
- com.
public final class ConditionalSkill
extends SearchIndexerSkill
A skill that enables scenarios that require a Boolean operation to determine the data to assign to an output.
Constructor Summary
| Constructor | Description |
|---|---|
| ConditionalSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Conditional |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Conditional |
fromJson(JsonReader jsonReader)
Reads an instance of Conditional |
| String |
getOdataType()
Get the odata |
|
Conditional |
setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). |
|
Conditional |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Conditional |
setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from SearchIndexerSkill
Methods inherited from java.lang.Object
Constructor Details
ConditionalSkill
public ConditionalSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of ConditionalSkill class.
Parameters:
Method Details
fromJson
public static ConditionalSkill fromJson(JsonReader jsonReader)
Reads an instance of ConditionalSkill from the JsonReader.
Parameters:
Returns:
Throws:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of skill.
Overrides:
ConditionalSkill.getOdataType()Returns:
setContext
public ConditionalSkill setContext(String context)
Set the context property: Represents the level at which operations take place, such as the document root or document content (for example, /document or /document/content). The default is /document.
Overrides:
ConditionalSkill.setContext(String context)Parameters:
setDescription
public ConditionalSkill setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
ConditionalSkill.setDescription(String description)Parameters:
setName
public ConditionalSkill setName(String name)
Set the name property: The name of the skill which uniquely identifies it within the skillset. A skill with no name defined will be given a default name of its 1-based index in the skills array, prefixed with the character '#'.
Overrides:
ConditionalSkill.setName(String name)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ConditionalSkill.toJson(JsonWriter jsonWriter)Parameters:
Throws: