ShaperSkill Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. SearchIndexerSkill - com.
azure. search. documents. indexes. models. ShaperSkill
- com.
- com.
public final class ShaperSkill
extends SearchIndexerSkill
A skill for reshaping the outputs. It creates a complex type to support composite fields (also known as multipart fields).
Constructor Summary
| Constructor | Description |
|---|---|
| ShaperSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs) |
Creates an instance of Shaper |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Shaper |
fromJson(JsonReader jsonReader)
Reads an instance of Shaper |
| String |
getOdataType()
Get the odata |
|
Shaper |
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). |
|
Shaper |
setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill. |
|
Shaper |
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
ShaperSkill
public ShaperSkill(List<InputFieldMappingEntry> inputs, List<OutputFieldMappingEntry> outputs)
Creates an instance of ShaperSkill class.
Parameters:
Method Details
fromJson
public static ShaperSkill fromJson(JsonReader jsonReader)
Reads an instance of ShaperSkill from the JsonReader.
Parameters:
Returns:
Throws:
getOdataType
public String getOdataType()
Get the odataType property: A URI fragment specifying the type of skill.
Overrides:
ShaperSkill.getOdataType()Returns:
setContext
public ShaperSkill 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:
ShaperSkill.setContext(String context)Parameters:
setDescription
public ShaperSkill setDescription(String description)
Set the description property: The description of the skill which describes the inputs, outputs, and usage of the skill.
Overrides:
ShaperSkill.setDescription(String description)Parameters:
setName
public ShaperSkill 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:
ShaperSkill.setName(String name)Parameters:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ShaperSkill.toJson(JsonWriter jsonWriter)Parameters:
Throws: