FieldMapping Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. FieldMapping
- com.
Implements
public final class FieldMapping
implements JsonSerializable<FieldMapping>
Defines a mapping between a field in a data source and a target field in an index.
Constructor | Description |
---|---|
Field |
Creates an instance of Field |
Modifier and Type | Method and Description |
---|---|
static
Field |
from Reads an instance of Field |
Field |
get Get the mapping |
String |
get Get the source |
String |
get Get the target |
Field |
set Set the mapping |
Field |
set Set the target |
Json |
to |
Methods inherited from java.lang.Object
FieldMapping
public FieldMapping(String sourceFieldName)
Creates an instance of FieldMapping class.
Parameters:
fromJson
public static FieldMapping fromJson(JsonReader jsonReader)
Reads an instance of FieldMapping from the JsonReader.
Parameters:
Returns:
Throws:
getMappingFunction
public FieldMappingFunction getMappingFunction()
Get the mappingFunction property: A function to apply to each source field value before indexing.
Returns:
getSourceFieldName
public String getSourceFieldName()
Get the sourceFieldName property: The name of the field in the data source.
Returns:
getTargetFieldName
public String getTargetFieldName()
Get the targetFieldName property: The name of the target field in the index. Same as the source field name by default.
Returns:
setMappingFunction
public FieldMapping setMappingFunction(FieldMappingFunction mappingFunction)
Set the mappingFunction property: A function to apply to each source field value before indexing.
Parameters:
Returns:
setTargetFieldName
public FieldMapping setTargetFieldName(String targetFieldName)
Set the targetFieldName property: The name of the target field in the index. Same as the source field name by default.
Parameters:
Returns:
toJson
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: